Given the following:
<div id="table-filters">
<ul>
<li class="active" onclick="myfunc();">blah</li>
<li onclick="myfunc();">blah</li>
<li onclick="myfunc();">blah</li>
<li onclick="myfunc();">blah</li>
</ul>
</div>
function myfunc() {
// Activate the LI clicked
$(this).addClass("active");
}
I would like my JQUERY to work as follows. Add class="active" to whatever LI is clicked.