-4
How can I click elements of a table that is being dynamically filled with jQuery? I want when it clicked pain to be marked only 1 row of the table. I only managed to mark all.
Here when clicking on the table it shows a button and now I wanted to when to click on td
it marks only the one that was clicked and not all
code:
$("#registros").click(function(){
$("#excluir").toggle();
$("tr").toggleClass("selected");
});
What is HTML? the element
<table>
has ID? which is the dynamic part? only the table content is dynamic or the table also?– Sergio
table and dynamic content and table id in html and records
– Leonardo Costa
Join HTML to help you. You need to delegate this event, there are answers that look like what you need.
– Sergio
Managed to Resolve?
– durtto
yes long ago
– Leonardo Costa