I have:
<ul id="ulId">
<li id="firstli">
</li>
<li id="secondli">
</li>
</ul>
and I am trying to remove secondli
.
This is what I have tried based on some reading.
$('#ulId secondli').remove();
and
$('#ulId > secondli').remove();
but these 2 methods did not work. Any suggestions?