JQuery AddClass to sub element -
i have structure html
<ul class="footer_column"> <li id="doc-22"><a href="/abc/index.php?id=22" title="wind blades coupling system" ><span>wind blades coupling system</span></a></li> <li id="doc-23"><a href="/abc/index.php?id=23" title="expandable bolt" ><span>expandable bolt</span></a></li> <li id="doc-24"><a href="/abc/index.php?id=24" title="security screw" ><span>security screw</span></a></li> <li id="doc-25"><a href="/abc/index.php?id=25" title="th preload system " ><span>th</span></a></li> </ul> i need addclass <li id="doc-25"><a><span class="notranslate">th</span></a>
its not clear. assuming want add class span. can use .find()
$('li #doc-25').find('span').addclass('notranslate');
Comments
Post a Comment