JQuery Mobile: check if the checkbox is checked or not.

How to check if jMobile is checked with js?

<input class="custom" id="myCheckbox" name="myCheckbox" type="checkbox"/> 
+7
source share
2 answers

In short:

 $("#myCheckbox").is(":checked") 
+22
source

If it is installed, you can use

 if( $("#myCheckbox").is(':checked')); 

And if it is NOT installed, you can use

 if( $("#myCheckbox").not(':checked')); 
0
source

All Articles