Sorry if my title isn't very clear. I wasn't sure what I should post this as. So here is the issue...
I have this jQuery Code.
$('.remove').eq(0).mouseover(function(){
$('.tooltip').eq(0).show();
});
$('.remove').eq(0).mouseout(function(){
$('.tooltip').eq(0).hide();
});
$('.remove').eq(1).mouseover(function(){
$('.tooltip').eq(1).show();
});
$('.remove').eq(1).mouseout(function(){
$('.tooltip').eq(1).hide();
});
What I am trying to do is hide and show tooltips depending on what element is hovered over. This works as expected and I could continue to rinse and repeat. However I am wondering if there is a good way to simplify this or make it more compact. Also I was assuming I could use .hover(), but that didn't seem to work for me. So instead I am using mouseover and mouseout. Thanks for your help.
-Kris