How to determine whether a DOJO Checkbox is checked or not?
dojo, javascript, syntax
Solution
You can use javascript function checked over id, like:
if (test.checked == 1){
alert("checked") ;
}
else{
alert("unchecked") ;
}
Here .checked will return "1" in case the checkbox is checked. Please try this in your javascript and let me know in case of any concern.
Problem
``` <input id="test" type="checkbox" value="test" data-dojo-type="dijit.form.CheckBox"> ``` How to check above dojo checkbox is checked or not in my javaScript function.