Return to Snippet

Revision: 17038
at August 21, 2009 08:59 by cesar


Initial Code
// 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 
    } 
);

Initial URL

                                

Initial Description

                                

Initial Title
How to check if checkbox is checked using jQuery

Initial Tags
javascript, jquery

Initial Language
jQuery