User-2054057000 posted
You can use the jQuery append method to append the textbox to the table element. Suppose you have the table element and the button.
<table>
<tr>
<td>Col1</td>
<td>Col2</td>
</tr>
</table>
<button id="button1">Click Here</button>
This is how HTML will look:

On the click of the button I will use .append() method to append the textbox to the table like this:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("#button1").click(function (e) {
textbox = $("<tr><td colspan='2'><input type='text' value='hello'></td></tr>")
$("table").append(textbox);
});
});
</script>
After the button click this is how the textbox is appended to the table:
