I have been searching but have come up blank and i\'m wondering if I can use one jQuery statement to target multiple elements on a page. I have several identical buttons on a pa
Currently the code looks like this:
$j(function (){
$j(".hoverBTN").hover(
function() {
$j(this).addClass("hoveroverL");
$j(this).addClass("hoveroverM");
$j(this).addClass("hoveroverR");
}, function() {
$j(this).removeClass("hoveroverL");
$j(this).removeClass("hoveroverM");
$j(this).removeClass("hoveroverR");
});
});
Which works but on the wrong elements. It currently changes the button being hovered over but it adds 3 classes to the buttons wrapper not to the sub classes for Right Left And Middle: An example of the button is: