javascript - How to determine whether a DOJO Checkbox is checked or not? -


<input id="test" type="checkbox" value="test" data-dojo-type="dijit.form.checkbox"> 

how check above dojo checkbox checked or not in javascript function.

you can use javascript function checked on id, like:

 if (test.checked == 1){           alert("checked") ;     } else{           alert("unchecked") ;     } 

here .checked return "1" in case checkbox checked.
please try in javascript , let me know in case of concern.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -