Hi Im using jquery ui toggleswitch toggleswitch.js I can get on off value but
how can i set on /off value programmatically in javascript or jquery
i'm using this code on change but i want to set it on document ready
$('.toggleEmailStatus').toggleSwitch().change(function (ev) {
alert(ev);
try {
console.log("value= " + $(this).val());
} catch (e) {
alert(e);
}
});
You can programmatically turn it on or off by triggering a click on the respective checkbox: