I have this html, Where "5" repeated twice.

```
<ul>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>5</li>
</ul>

```

So, I'm using click() on "LI" elements.

```
    var guess1 = "";
    var guess2 = "";
    var count = 0;

    $("li").click(function(){
        if ( count < 2 ){
             count++;
            if (count === 1 ) { 
                guess1 = $(this).text(); 
            } else{
                guess2 = $(this).text();
                    if (guess1 === guess2) {
                    $(this).css("background", "red"); // Here both matching "LI" should affect. Not only one "LI"
                }
            }      
        }
    });

```

Problem: I want that, when "guess1" === "guess2", then both matching "LI" (In this case LI containing value "5") should take bg color.

Please give any suggestion. Thanks :)