I want to count how many checkboxes on my page are selected using jQuery. I\'ve written the following code:
var numberOfCheckboxesSelected = 0;
$("input:checked").length
this will return the count of checked checkboxes.