質問

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