Possible Duplicate:
jQuery select based on text
I am learning drupal. I want to add some jquery to a site. I know I can and probably will later, go back and add id’s and classes so I can access things easier, but I want to know how to use ‘has’ or ‘contents’ and or ‘filter’ correctly.
On my page I have a ton of paragraphs, I want to select the <p>‘s based on their contents and then do something with them, so for example I want:
jQuery('p').has('What is Supplemental').css('background-color', 'red')
How would I do that?
Site example here: http://surety.lfwebz.com
Thank you for your insight.
how about :contains?