how to add row in javascript in asp.net
<script type="text/javascript">
$(document).ready(function () {
var ID = 2;
function addRow() {
var html =
'<tr>' +
'<td>File: <input type="file" name="fileUpload' + ID + '" /></td>' +
'<td><input type="button" class="BtnPlus" value="+" /></td>' +
'<td><input type="button" class="BtnMinus" value="-" /></td>' +
'</tr>'
$(html).appendTo($("#Table1"))
ID++;
};
$("#Table1").on("click", ".BtnPlus", addRow);
function deleteRow() {
var par = $(this).parent().parent();
par.remove();
};
$("#Table1").on("click", ".BtnMinus", deleteRow);
});
</script>