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

Answer by oscar castellon for Check if checkbox is checked with jQuery

$
0
0

Try this...

$(function(){  $('body').on('click','.checkbox',function(e){    if($(this).is(':checked')){      console.log('Checked')    } else {      console.log('Unchecked')    }  })})

Viewing all articles
Browse latest Browse all 28

Trending Articles



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