I have a very specific problem.
I would like to insert specific code using the fadeIn, fadeOut functions, but it does not work if I use the tr and td tags embedded in the div tag.
I have this code for the JS part:
var registrationPart = $('div.registration-part'); var loginPart = $('div.login-part'); $('span.logreg.log').click ( function () { registrationPart.fadeOut("fast"); loginPart.fadeIn("slow"); }
And this is in html:
<table class="table"> <div class="registration-part"> <tr> <td>registration</td> </tr> </div> <div class="login-part"> <tr> <td>login</td> </tr> </div> </table>
So fadeIn, fadeOut does not work if there is a td tag inside the div. If I replace them with a div or span, everything will be fine.
Is there a way to leave tr, td, so I donβt need to create special stylesheets for the div, so it will look like tr, td.
Thanks in advance.
source share