[jquery] Remove a CLASS for all child elements

Given the following HTML:

<div id="table-filters">
    <ul>
        <li class="active">blah</li>
        <li>blah</li>
        <li>blah</li>
        <li>blah</li>
    </ul>
</div>

Using table-filters as the jQuery selector, how can I clear out the elements having CLASS=ACTIVE, no matter which LI it happens to be on?

thanks

This question is related to jquery css-selectors

The answer is


You can also do like this :

  $("#table-filters li").parent().find('li').removeClass("active");