Posted By

radarseven on 08/24/09


Tagged

textmate check jquery checkbox checkd


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


jQuery Checkboxes Again


 / Published in: Other
 

  1. // First way
  2. $('#checkBox').attr('checked');
  3.  
  4. // Second way
  5. $('#edit-checkbox-id').is(':checked');
  6.  
  7. // Third way
  8. $("input[@type=checkbox][@checked]").each(
  9. function() {
  10. // Insert code here
  11. }
  12. );
  13. Returns true or false.

Report this snippet  

You need to login to post a comment.