Possible Duplicate:
Is there a CSS parent selector?
Here is my HTML code:
<li class='href-parent'> <a class='href'></a> </li>
I want all the 'li' tags with an 'a' tag with class 'href' to change color.
Possible Duplicate:
Is there a CSS parent selector?
Here is my HTML code:
<li class='href-parent'> <a class='href'></a> </li>
I want all the 'li' tags with an 'a' tag with class 'href' to change color.
With jQuery, you can use $('li.href-parent > a.href').parent().dosomething()
;