jquery - Remove inline CSS attribute from a subtag -
i used code:
jquery
$('a').css("line-height", "null") or $('a').removeattr('style');
html
<div id="categories"> <nav> <ul id="nav"> <li class="first"> <a class="page_item_first" href="" title="home" style="line-height: 158px;">home</a> </li> </ul> </nav> </div>
but didn't work.
any advice please?
that code works.
load javascript/jquery scripts @ bottom of page.
Comments
Post a Comment