I am creating textboxes dynamically on button click. I want to know to remove textboxes with another button click.
HTML
<table class="table-fill tbfill">
<thead>
<tr>
<th class="text-left" runat="server">Screen Name</th>
<th class="text-left" runat="server">Seats Available</th>
<th class="text-left"></th>
</tr>
</thead>
</table>
<input id="btnAdd" type="button" value="ADD"/>
jQuery
$("#btnAdd").bind("click", function ()
{
$("tbody.addScreen").append('<tr id="row0">' +
'<td class="text-left" name="screenName"> <input id="screenNameTextBox"/> </td>' +
'<td class="text-left"> <input id="seatsAvlTextBox" name="seatsAvl" /> </td>' +
'<td class="text-left"> <input type="button" value="Remove" id=Removebtn/> </td>' +
'</tr>');
});
I have a Remove button here. When I click the button I need to remove the textboxes from the corresponding row. How can I do this?
row0,Removebtnwhich is incorrect. Use classes instead.