Posted Date:19-06-2017

In this we will explain check box checked or not.

Step 1: Include jQuery  Plugin

<source src=""></source >

Step 2:Create the HTML page using  following code

<!DOCTYPE html>
 <title>Check/uncheck </title>
 <source src=""></source>
 <input type="checkbox" class="test" value="" >

 $(document).on('click', '.test' , function() {
 if ($('.test').prop('checked')==true)
 else if ($('.test').prop('checked')==false)

Conclusion, if the user checked check box getting alert true,Otherwise get alert false


Leave a Reply