<ul>
<li id="db" onclick="loadSlide('db_content')">Database</li>
<li id="xp" onclick="loadSlide('xp_content')">Xpath</li>
<li id="con" onclick="loadSlide('con_content')">Controller</li>
</ul>
This is the code and I want to add active class.
Please note that there is no a tag.
Now how can I add active class to li
Thanks in advance
I think this is more relative and reliable.