jQuery(":checkbox") is to select all the checkbox elements, as all the checkboxes are of input elements it is good practice prefix it with type of element like $('input:checkbox'). The following is the query to select all the checkboxes in a form. $('form input:checkbox')