SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have used td .ms-vb2:contains but I need to match an exact value in a cell.

share|improve this question
You'll probably have to do some sort of for each loop, without any code to go off of and what the page output looks like, it'll be hardpressed to give you an exact answer. – Eric Alexander May 16 '12 at 19:46

You can use the jQuery filter function to provide an exact match -

For example:


    $("td .ms-vb2").filter( function (index) {

       return $(this).text() == "Exact value to be matched";

    .css("background-color", "red");


See this post -

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.