Jquery - Select multiply divs, on hover

TelaEmawJew

New Member
So I need, that when I mouseover \[code\]#3\[/code\]. Both \[code\]#1\[/code\] and \[code\]#2\[/code\] are getting a specific css class.Same goes if i hover \[code\]#5\[/code\], then all divs gets the css class.And when they are not hovered anymore, the class removes from the divs. \[code\]<div class="rateStar"><a href="http://stackoverflow.com/questions/15631883/#1"><img src="http://stackoverflow.com/images/images/stars.png"/></a></div><div class="rateStar"><a href="http://stackoverflow.com/questions/15631883/#2"><img src="http://stackoverflow.com/images/images/stars.png"/></a></div><div class="rateStar"><a href="http://stackoverflow.com/questions/15631883/#3"><img src="http://stackoverflow.com/images/images/stars.png"/></a></div><div class="rateStar"><a href="http://stackoverflow.com/questions/15631883/#4"><img src="http://stackoverflow.com/images/images/stars.png"/></a></div><div class="rateStar"><a href="http://stackoverflow.com/questions/15631883/#5"><img src="http://stackoverflow.com/images/images/stars.png"/></a></div>\[/code\]But Im a bit lost on how this can be done, can some one help me ?
 
Back
Top