I’ve 2 control jqxSwitchButton
$(‘#jqxSwitchButton1’).jqxSwitchButton({ height: 27, width: 81, theme: theme, checked: true });
$(‘#jqxSwitchButton1’).bind(‘change’, function(event) {
myFunction();
});
$(‘#jqxSwitchButton2’).jqxSwitchButton({ height: 27, width: 81, theme: theme, checked: true });
$(‘#jqxSwitchButton2’).bind(‘change’, function(event) {
myFunction();
});
The info on this 2 control are saved, when i take that info and i preload the value, the myfunction() is called 2 times
can I set the value without call myFunction()?
//preload
$(‘#jqxSwitchButton1’).jqxSwitchButton({ checked: false });
$(‘#jqxSwitchButton2’).jqxSwitchButton({ checked: false });
Shardik