jQuery multiple selectors into dynamic attribute
Posted
by
Jason Fletcher
on Stack Overflow
See other posts from Stack Overflow
or by Jason Fletcher
Published on 2010-12-26T06:35:59Z
Indexed on
2010/12/26
6:54 UTC
Read the original article
Hit count: 247
jQuery
|jquery-selectors
I am trying to attach an event to a separate onhover trigger. But I am having problems using multiple selectors since its dynamic.
Need help ::: Upon hovering on the yellow box named 'Rings', this should trigger the animated slide event for the green box above it.
http://home.jasonfletcher.info/all/alliteration/index.html
$('.boxgrid1').hover(function(){
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'247px'},{queue:false,duration:300});
});
© Stack Overflow or respective owner