form validation

How to check if any of the checkoboxes was checked ?.
I just need to know if at least one was selected ?
RozamundaAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
if( $(":checkbox:checked").length > 0 ) {
    // ok one or more is checked
}

references :
http://api.jquery.com/checkbox-selector/
http://api.jquery.com/checked-selector/
0
 
baretreeCommented:
$("input[type=checkbox][checked]").each(
    function() {
       // Insert code here
    }
);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.