Showing posts with label Check / uncheck checkbox using jquery?. Show all posts
Showing posts with label Check / uncheck checkbox using jquery?. Show all posts

Wednesday, 7 October 2015

How to check if the checkbox is checked or uncheck jQuery


How to check if the checkbox is checked or uncheck jQuery

Try to use below script

<script type="text/javascript">

if(jQuery('input[id=input_id]').is(':checked')){
// Your Statment
}else{
// Your Statment
}

OR

if(jQuery('input[name=input_name]').is(':checked')){
// Your Statment
}else{
// Your Statment
}

</script>