Hi, I have an unordered list of links.
<ul>
<li><a href="#">Link is really really really really LONNNNNNNG</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
I have set the line-height or the list items to 30px.
ul {width:100px;}
ul li {line-height:30px;}
ul li a {display:block;}
I want to change this on any <li>
where the texts wraps to a second line, without affecting the other <li>
s. What is the best way to do this in jquery?
Thanks in advance.