我有這樣的結構HTMLJQuery的AddClass子元素
<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>
我需要addClass到<li id="doc-25"><a><span class="notranslate">th</span></a>
$( 「DOC-25」).addCla ss(「myClass yourClass」); –
我想這個問題還不清楚。真的不能得到OP OP想要? –
$(「#doc-25 a span」).addClass(「notranslate」) – Speedy