문제

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

도움이 되었습니까?

해결책

function delrow(){
    $('table tr').click( function() {
    $(this).remove();
    });     
 }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top