I am trying to target the actual element mentioned in my conditional statement, here is an example of my code:

```
  let selectValue = $('.Select input').val();
  if ($('.vehicle-item').attr('data-value') != selectValue) {
    //Add a class to the element that hasn't got an attribute equal to the `selectValue` variable.
  }

```

So basically on my page there are multiple elements with the class of `.vehicle-item`some of these will pass the conditional statement and some wont. I would like to add a class to all of the elements with that class that don't pass the conditional statement.

If I could somehow iterate over that conditional statement for every element that didn't pass and add a class that would work however how do I do this?