Quantcast
Channel: jQuery – Web Developer Juice
Viewing all articles
Browse latest Browse all 20

How to check or uncheck a checkbox with jQuery

$
0
0

Check or uncheck a checkbox with jQuery is a simple task and can be achieved very easily. If you are using jQuery 1.5 and below you need to use .attr(). Here it is   To check <input class="checkbox" /> use   $('.checkbox').attr('checked','checked');     To uncheck <input class="checkbox" /> use   $('.checkbox').removeAttr('checked'); But if you […]

The post How to check or uncheck a checkbox with jQuery appeared first on Web Developer Juice.


Viewing all articles
Browse latest Browse all 20

Trending Articles