.myDiv {
background: url(/images/myimage.jpg);
margin: 0 auto;
}
<div class="myDiv">
Click Me!
</div>
I just want the Background image to fade, and not the the text Click me. Is that possible in jQuery?
Here's my attempt :
$(".myDiv").hover(function() {
$(this).css("background", fadeTo("slow", 0.5))
},function(){
$(this).fadeTo("slow", 1.0);
});
Which obviously doesn't work. It's just psuedo-code. :(