I'm having trouble counting the checkboxes that are selected, maybe for the following reason, I have a radio that is also selected. Whenever I use code $('input[type="checkbox"]:checked').length
is given a value of 1, and no checkbox is selected. If I select only one, the value 2 is displayed and so on. How do I resolve this issue?