animating natively inline elements, jQuery 1.3.2 vs 1.4
in Using jQuery
•
13 years ago
As far as I can tell, animating natively inline elements was changed slightly in jQuery 1.4 -- I've been using CSS to set display: block on all form label elements, & I hide specific form labels using a more specific selector (example CSS below). Then I use jQuery to .slideDown() the hidden form labels when needed.
With jQuery 1.3.2, this method worked & the animated labels ended up with display: block set as an inline style after .slideDown() finished.
form label { display: block; }
form label#test1,
form label#test2 { display: none; }
</style>
With jQuery 1.4, the animated label elements end up with display: inline (again, set as an inline style) after the animation ends.
Anyone know if this the intended behavior or is this a bug? Either way, I'm not sure how else to handle this without adding another container element around each form label I want to animate, & using the new container to handle animating the labels rather than using the labels themselves.
Example code: under jQuery 1.4 or jQuery 1.3.2
-Wick
1