Aug 16
Like most of CF programmer, I am also a fan of jQuery. jQuery is fast and awesome JS framework. I love jQuery. Here I mentioned some useful jQuery plugins which i used in most my projects.
Like most of CF programmer, I am also a fan of jQuery. jQuery is fast and awesome JS framework. I love jQuery. Here I mentioned some useful jQuery plugins which i used in most my projects.
There are 3 ways in jQuery to find a check box is checked or not.
// First way
$('#checkBox').attr('checked');
// Second way
$('#edit-checkbox-id').is(':checked');
// Third way for jQuery 1.2
$("input[@type=checkbox][@checked]").each(
function() {
// Insert code here
}
);
// Third way == UPDATE jQuery 1.3
$("input[type=checkbox][checked]").each(
function() {
// Insert code here
}
);
First two methods return true or false. True if that particular checkbox was checked or false if it is not checked. The third method iterates though all checkboxes with checked attribute defined and performs some action.
Basic JQuery syntaxes and examples by Raghuram
Sorting table with alternate row colors with Gmail contact importer example
Recent Comments