Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8678673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:46:58+00:00 2026-06-12T20:46:58+00:00

I am using fadeIn to expand row in the table after user clicks. Everything

  • 0

I am using fadeIn to expand row in the table after user clicks. Everything works correct in Chrome and even IE, but it doesn’t work in Firefox 15.0.1. In FF after expanded row is faded in it’s background blinks one time.

Here is my code:

$('.patients-items-item').click(function() {
    var item = $(this).next('.toggle-item');

    if (item.is(":visible")) {
        item.hide();
    } else {
        item.fadeIn();
    }
});

Html:

<table class="patients-table">
    <tbody class="patients-items">
        <tr class="patients-items-item">
            <td>
                <span class="button collapsed"></span>
            </td>
            <td>
                Text
            </td>
            <td >
                Text2
            </td>
        </tr>
        <tr class="toggle-item">
            <td colspan="3" class="patients-studies-empty">
                Text3
            </td>
        </tr>
    </tbody>
</table>

Look at the Fiddle.

During investigation I have found that such behavior is present only in tables. If I do the same with divs code will work correct in all browsers.

Any suggestions will be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:46:59+00:00Added an answer on June 12, 2026 at 8:46 pm

    In jQuery you can use the toggle() function to get the behavior that you want.

    See example here:

    http://jsfiddle.net/83tNC/

    $('.patients-items-item').on('click', function() {
    
        $(this).next('.toggle-item').toggle('fade');
    
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple jQuery animation using fadein and it works but once faded
I ended up using jquery templates and so far everything is working fine, but
Just started using fadein/fadeout - it's functioning but with problems. I have a set
Similar to: Using fadein and append But the solutions there aren't working for me.
I am using fadeIn/fadeOut effect to periodically change header images. This is ok but
i'm using the jquery fadein fadeout with the slow option, but it's still a
I'm trying to fadeIn and fadeOut a transparent png using JQuery. Of course, it
How do I fade in an element after using jquery's .before? jQuery $('.button').on(click, function(event){
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using .fadeIn() and .fadeOut() , I have been hiding/showing an element on my page,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.