如何增加我的新行以从现有数字继续?
$('.add-button').click( function() {
//var $current_num = $("table#myTable tbody tr td").length;
var $this = $("table#myTable tbody tr");
var $current_num = $this.find("td:first").attr("rowspan").length;
var $incremented = $this.find('td.increment').val(parseInt($this.find('td.increment').val())+1);
$("#myTable tbody").append("<tr><td rowspan='2'>" + $incremented + "</td><td>other data</td><td>even more data</td></tr><tr><td colspan='8'>test</td></tr>");
return false;
});