Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Hiding div using jquery

Hiding div using jquery

Scheduled Pinned Locked Moved ASP.NET
javascript
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jagz W
    wrote on last edited by
    #1

    i have hide a div using jquery like $("#div1").hide(); in $(document).ready{}; when mypage loads this div shows once then hide.

    One person's data is another person's program. --J.Walia

    C A 2 Replies Last reply
    0
    • J Jagz W

      i have hide a div using jquery like $("#div1").hide(); in $(document).ready{}; when mypage loads this div shows once then hide.

      One person's data is another person's program. --J.Walia

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I guess the code takes a second to run. If you want it hidden on load, hide it in the code behind.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • J Jagz W

        i have hide a div using jquery like $("#div1").hide(); in $(document).ready{}; when mypage loads this div shows once then hide.

        One person's data is another person's program. --J.Walia

        A Offline
        A Offline
        Atif Ali Bhatti
        wrote on last edited by
        #3

        hi, if u want the div to be hidden on page load, good thing will be to add style="display:none;" to the div. e.g., <div id='div1' style="display:none;">your content here.</> and later u can show it by using $('#div1').show(); Regards. Atif Ali Bhatti

        J 1 Reply Last reply
        0
        • A Atif Ali Bhatti

          hi, if u want the div to be hidden on page load, good thing will be to add style="display:none;" to the div. e.g., <div id='div1' style="display:none;">your content here.</> and later u can show it by using $('#div1').show(); Regards. Atif Ali Bhatti

          J Offline
          J Offline
          Jagz W
          wrote on last edited by
          #4

          thanks for reply i will try this

          One person's data is another person's program. --J.Walia

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups