-2
該按鈕位於此TR上,我可以使用以下代碼輕鬆刪除它。如何刪除下一個TR刪除下一個元素 - Javascript
E.g.
<TR></TR> --> Code works with removing this
<TR></TR> --> Remove the next TR THis one
var $this = $(this),
orderTr = $this.parents('tr');
orderTr.remove();
來吧。這是jQuery中最基本的操作之一。你能不能至少訪問API文檔並在搜索欄中輸入「next」? http://api.jquery.com/ – 2014-09-26 16:36:19