Hiding div using jquery
-
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
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.
-
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
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
-
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