SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: hide on load

Hybrid View

  1. #1
    SitePoint Addict SunnaH's Avatar
    Join Date
    Aug 2005
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question hide on load

    $(document).ready(function() {
    $('.tblMinimum').show();
    $('.tblMaximum).hide();
    });

    When the page loads I still see .tblMaximum for a split second before it is hidden. How can I get it to hide completely?
    -=SunnaH=-

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,134
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Set it in your CSS to hide it

    Code CSS:
    .tblMinimum { display: none; }

  3. #3
    SitePoint Addict SunnaH's Avatar
    Join Date
    Aug 2005
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cpradio View Post
    Set it in your CSS to hide it

    Code CSS:
    .tblMinimum { display: none; }
    Is that going to work if later I want to show the same class with an on click function?
    -=SunnaH=-

  4. #4
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,134
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Yes. Your click event that calls .show() will allow the element to be shown.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •