I have 3 div’s:
<div class='squares' id='div1'></div>
<div class='squares' id='div2'></div>
<div class='squares' id='div3'></div>
With jQuery, I would like to apply a css property (a border-right) to all div’s, except the first one.
What is the if statement that I should use? I want to use the class in the if statement (not the id’s).
Thanks very much.
You can use
:not()and:firstselectors:or: