Programmatically Uncheck/Check DOJO Checkboxs
The below lines of code will help us to check /uncheck set of dojo checkboxes from javascript.dojo.forEach (dojo.query("input[type=checkbox]"), function(item){
var widget = dijit.getEnclosingWidget(item);
alert(widget)
widget.set('checked', false);
})
We can change the dojo.query parameter accordingly to fetch the checkboxes.
Thank you, that was a life saver!
ReplyDelete