timmywil / jquery.onoff

Interactive, accessible toggle switches for the web.
http://timmywil.github.io/jquery.onoff/
MIT License
91 stars 22 forks source link

Change switch sate does not set checked state. #9

Closed Astra-RX closed 8 years ago

Astra-RX commented 8 years ago

I tried the master version and the online sample. When I click the toggle, the checked state does not change in HTML. I set $input.attr('checked', true), the toggle does not change either.

Astra-RX commented 8 years ago

Resolved by using props('checked') method. My fault.