I’m using the code from this page http://jsfiddle.net/gnQUe/170/
jquery slide toggle as a form checkbox
how can i use multiple such switches in a single page, if I’m using the same script & css
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, put the hidden input in the same
divas the controls, and give it aclassinstead of anid:Then use this jQuery to change it’s value:
Example fiddle
You’ll see in the fiddle I’ve left the inputs as
textso you can see the value changing.