2011/12/14

Using jQuery to select/deselect all

0 comments
Using jQuery to select/deselect all with just 3 lines of code

$("input[id$='selectAll']").click(function () { 
        $("INPUT[type='checkbox'][id*='chkbox']").attr("checked", $(this).is(":checked"));
});

0 comments:

Post a Comment

 

Khanh DAO | © 2011

Design by DheTemplate.com and Theme 2 Blog