How to select font with its style attribute value.

Posted by Wazdesign on Stack Overflow See other posts from Stack Overflow or by Wazdesign
Published on 2010-05-24T12:31:54Z Indexed on 2010/05/24 12:41 UTC
Read the original article Hit count: 363

Filed under:
|
|

I have the following html mark up.

<p> lorem ipsum lorem ipsum 
<font style="background-color:yellow"> ipsum </font> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam id enim in tellus sollicitudin viverra. Morbi nec ipsum ligula, non volutpat enim. In quis metus <font style="color:red"> Tincidunt lorem </font>blandit faucibus. Nam condimentum facilisis vestibulum. Nunc tristique est vel erat sagittis ac placerat orci varius.</p>

I want to select only the font which has the "background-color:yellow" not any other <font> tag with any style

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery