In meinem Fall meine HTML und Javascript:Wie Auto-Nummer Tabellenzeile hinzufügen?
$('.addRow').on('click', function() {
addRow();
});
function addRow() {
var tr = '<tr>' +
'<td></td>' +
'</tr>';
$('tbody').append(tr);
};
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<table id="example1" class="table table-bordered">
<thead>
<th>No.</th>
<th style="text-align:center"><a href='#' class="addRow"><i class="glyphicon glyphicon-plus"></i></a></th>
</thead>
</table>
ich möchte es machen wie diese
1.
2.
3.
............
Betrachten Sie die Antwort zu akzeptieren, wenn es keine Hilfe ist – Geeky