Code
Code:
Fine:
script:void(0);" id='anc_add' class="btn btn-green">Add Code
script:void(0);" id='anc_rem' class="btn btn-red ">Remove CodePowerShell
$(document).ready(function () {
var cnt = 2;
$("#anc_add").click(function () {
$('#tbl1 tr').last().after(' Code:' + cnt + '
Fine:' + cnt + '
'); cnt++; });
$("#anc_rem").click(function () {
if ($('#tbl1 tr').size() > 1) {
$('#tbl1 tr:last-child').remove();
}
else {
alert('One row should be present in table');
}
});
var getval = $('input[data-type="number"]').val;
});which have column as
Code
id Code Fine

Answers
Know the answer? Post it. Somebody with the same question will find it here.