I am adding table in html through jquery dynamically. I am able to add. But I can't remove added table. CSS 'remove' id which is appended from jquery doesn't work. 'remove' Id is added in section tag at last of script
Jquery
$().ready(function(){
$('#AddMoreId').on('click', function(){
$('article:last').append('<article class="col100 left bggreen"><table><tr><th>ID</th><td><input type="number" id="id"></td></tr><tr><th>Menu in NPL</th><td><input type="text" id="menunep"></input></td></tr><tr><th>Menu in ENG</th><td><input type="text" id="menueng"></input></td></tr></table><section class="col100 left cursorpointer" id="remove">Remove</section></article><br/>');
});
$('#remove').on('click', function(){
$(this).parents('article').remove();
});
});
Html
<article class="col100 left bggreen">
<table>
<tr>
<th>
ID
</th>
<td>
<input type="number" id="id">
</td>
</tr>
<tr>
<th>
Menu in NPL
</th>
<td>
<input type="text" id="menunep"></input>
</td>
</tr>
<tr>
<th>
Menu in ENG
</th>
<td>
<input type="text" id="menueng"></input>
</td>
</tr>
<tr>
<td class="cursorpointer" colspan="2" id="AddMoreId">Add field
</td>
</tr>
</table>
</article>