Quantcast
Channel: Check if checkbox is checked with jQuery - Stack Overflow
Viewing all articles
Browse latest Browse all 28

Answer by Mohammed Shaheen MK for Check if checkbox is checked with jQuery

$
0
0

You can use this code,

if($("#checkboxId").is(':checked')){
     // Code in the case checkbox is checked.
} else {
     // Code in the case checkbox is NOT checked.
}

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>