for example:
<ul>
<li id="l1"></li>
<li id="l2"></li>
<li id="l3"></li>
<li id="l4"></li>
<li id="l5"></li>
</ul>
how can I remove a row?
for example:
<ul>
<li id="l1"></li>
<li id="l2"></li>
<li id="l3"></li>
<li id="l4"></li>
<li id="l5"></li>
</ul>
how can I remove a row?
$('#l1').remove(); // To remove specific element that has id
$('li').remove(); // To remove all li's
$('.l1').remove(); // To remove elements with class l1
You can remove:
/**
id is a variable that you can get from anywhere wish you
**/
$("#l"+id).remove();
Other option more specific
$("#l1").remove();