I have an HTML table with a checkbox in each row.
I want to loop over the table and see if there are any checkboxes that are checked. The following does not work:
$(document).on("click", "#Button2", function(event)
{
$('#mytable').find('input[type="checkbox"]:checked').each(function()
{
console.log($(this).text());
});
});
https://jsfiddle.net/dHZS9/696/
In the above fiddle Initially Select some checkboxes (For example A , B , H)
On click of a button how to get names for which checkbox is selected (For Example A, B, H) in this case