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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -