If you try to do a .fadeIn() on a <tr> in jQuery, it adds (on Firefox and IE7) the element display:block;. (on IE7 also zoom:1).
I’m using the version 1.5 of jQuery. Is it a bug? And how can I fix this problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There isn’t much to work with in your question.
This example (using 1.5.2) shows that the display is
table-cellafter the.fadeIn().code from example
BUT
If your CSS has something like this:
Then jQuery won’t know what to set the display as, and will just assume
block.Example: http://jsfiddle.net/AG34Z/1/
If that’s the case, then don’t set the
trtodisplay:none, but instead give a class, and set the display on that.Example: http://jsfiddle.net/AG34Z/3/
You can see that the
.fadeIn()now sets the correctdisplayon the row.