this is very simple thing.I know and i am always using this type of thing. Now in my one project I am facing problem add class.
bellow is just HTML example:
//html
<div>
<ul>
<li><a href="#waxing" class="st_tab">Waxing</a></li>
<li><a href="#hair-design" class="st_tab">Hair Design</a></li>
<li><a href="#chemical-services" class="st_tab">Chemical Services</a></li>
</ul>
</div>
js
$("ul li a:nth-child(1)").addClass("st_first_tab");
see this http://jsfiddle.net/QbN7c/1/ but it's working fine i use like this
$("ul li:nth-child(1)").addClass("st_first_tab");
i mean with out a tag.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments