Quantcast
Viewing latest article 9
Browse Latest Browse All 20

How to check or uncheck a checkbox with jQuery

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 latest article 9
Browse Latest Browse All 20

Trending Articles