Question

I have a project when I want create a dynamic list of items before proceed to save the information, I'm using Jquery and append to create the table, I'm trying to remove the entire row from the Resumee table, I'm removing with jquery $('ID').remove but this logic doesn't work when I delete randon items from the table.

I want to know if there is a way to delete the entire rown withouth having a specific ID

My project here: jsfiddle.net/yGjFR/7/

Blue Button = ADD

Was it helpful?

Solution

function delrow(){
    $('table tr').click( function() {
    $(this).remove();
    });     
 }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top