If I establish a button that fades in or out on hover, the children fade with the parent. The children contain text, so I'd like to be able to make them ignore the fadeIn()
or fadeOut()
effects. I didn't have any luck with not()
either.
I suspect some lack of knowledge on my part is to blame, because if it's just changing the CSS on the fly then there is probably not a great way to keep those changes from affecting the children as it does the parents.
It's simple code obviously but it is as follows, if it is relevant:
myButton.hover(function(){
$(this).fadeTo(/*code to change the speed, etc etc*/);
}, function(){
$(this).fadeTo(/*reverse the changes, and so on*/);
}
});
Is there a great way to have children ignore these kinds of changes to the parent?