framework7-website icon indicating copy to clipboard operation
framework7-website copied to clipboard

Toggle - need better Documentation to get a value of the toggle

Open umaraliyar opened this issue 5 years ago • 0 comments

Hi, Thanks for the framework! Toggle is a pain in neck. There is no easy way to get toggle is on / off through jquery. it always return "on". Tried to change by checking if checked

var toggle = app.toggle.get('.toggle');

if (toggle.checked) { // do something } it returns undefined with error in console. Give us a better example on core jquery not in react / vue.

umaraliyar avatar Jun 17 '20 17:06 umaraliyar