2
I need to transition from this script to use with <select>
.
See well the script working is like this http://callmenick.com/tutorial-demos/css-toggle-switch/
My selects (over 88) are ONLY in this style:
<select>
<option value="0">Off</option>
<option value="1" selected="selected">On</option>
</select>
Only with on and off option (0.1)
I wish I could adapt the CSS for this, but I see that it is CSS3 and I don’t know how to work with it.. What can I do?
Example of what it would be like http://jsfiddle.net/thebestclassdsfgf/jo2hkom2/1/
perfect! But I would have problems, because I already define who is marked or not using the
selected="selected"
and in that case it didn’t work..– Vinícius Lara
@user3163662 ok, that’s simple, you only need to add one more line: http://jsfiddle.net/7m8L2b74/2/
– Sergio
Okay, now I’m having problems, it doesn’t change the value.. As I’m going to post, I need you to change. See (change toggle and wait) jsfiddle.net/thebestclassdsfgf/7m8L2b74/3 @Sergio
– Vinícius Lara
@user3163662 and why not do this with checkbox?
– Sergio
@Segio I am making transitions.. and are many checkboxes
– Vinícius Lara
@user3163662 I edited the response to change the value of select when it receives a click
– Sergio
thank you very much, with your help I got =)
– Vinícius Lara
@user3163662 good!
– Sergio