How can I do to grab the elements of a table that is being populated dynamically with jQuery? I want it when the clicked pain is marked only 1 row of the table. I just managed to check them all.
Here when I click on the table it shows a button and now I wanted to when I click on the td
it just mark the one that was clicked and not all
code:
$("#registros").click(function(){
$("#excluir").toggle();
$("tr").toggleClass("selected");
});