Looking to change the border color on a box..
..when the user mouses over/out..
Here\'s the attempted code.. Needs Work!
JQuery:
<
You forgot the dot of class selector of result class.
Live Demo
$(".result").hover(
function () {
$(this).addClass("result_hover");
},
function () {
$(this).removeClass("result_hover");
}
);
You can use toggleClass on hover event
Live Demo
$(".result").hover(function () {
$(this).toggleClass("result_hover");
});