[jQuery] Animate Variable Concatenate Help
I'm trying to get the width of an element, animate it bigger, then shrink it back to normal size on hover. Here's my function: $('a.slider').hover(function(){ var mywidth = $(this).width(); $(this).animate({width: "240px"}); }, function(){
[jQuery] Re: Animate Variable Concatenate Help
$(this).animate({ width: mywidth + "px" }); > > think: > > var newwidth = { > "width": mywidth + "px" > > } > > Regards > > On Thu, Apr 30, 2009 at 5:54 PM, paper_robots wrote: > > > I'm trying to get the width o