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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -