I have the following HTML code:
<ul class="message" id="stats-results">
<li>DS1 Records: <span id="ds1Count"></span></li>
<li>DEV Records: <span id="devCount"></span></li>
</ul>
Is there an easy way for me to completely remove the li elements from the ul using jQuery?
There a method just for that, empty()
No need for “tricks”.