Pregunta

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

¿Fue útil?

Solución

function delrow(){
    $('table tr').click( function() {
    $(this).remove();
    });     
 }
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top