How to Check a Checkbox Using jQuery

How to Check a Checkbox Using jQuery
Rating: 5 - 1 Votes

How to Check a Checkbox Using jQuery

To check a checkbox in jQuery, we make use of prop() function.  This function is only available in jQuery 1.6 or higher.  For jQuery 1.5 or lower, please make use of attr() function.  Example is given below for jQuery 1.6 or higher.