In a html table I have a checkboxes colums with the following markup:
<input type="checkbox" id="selection_2012-10-01-LIN-C" class="selections" name="selection_checkbox" disabled="disabled">
<input type="checkbox" checked="checked" id="selection_2012-10-01-ADE-C" class="selections" name="selection_checkbox">
On button click I need to validate if any of check boxes is selected, I m using the following code for that and getting false
:
var selectedLots = $('input[name^="selection_checkbox"]').prop("checked");
Requriement is to get count of selected checkboxes or true
, please guide me how select this.
Thanks