Loop over html table and get names of checked checkboxes (JQuery)
<p>I have an HTML table with a checkbox in each row.</p>

<p>I want to loop over the table and see if there are any checkboxes that are checked.
The following does not work:</p>

<pre><code>$(document).on("click", "#Button2", function(event)
{
        $('#mytable').find('input[type="checkbox"]:checked').each(function()
        {
                console.log($(this).text());
        });
});
</code></pre>

<p><a href="https://jsfiddle.net/dHZS9/696/" rel="nofollow">https://jsfiddle.net/dHZS9/696/</a></p>

<p>In the above fiddle Initially Select some checkboxes (For example A , B , H)</p>

<p>On click of a button how to get names for which checkbox is selected (For Example A, B, H) in this case </p>