jquery - I cannot initially hide(); my span tag -


i have loader animated gif want hide , show during ajax request.

this loader html code.

<span id="loader"><img src="images/icons/ajax-loader.gif" alt="loader" /></span> 

i want hide this

    <script type="text/javascript">         $(document).ready(function() {             $('#loader').hide()         });     </script> 

however still shows until until ajax function run , hides it. want hide @ startup.

<span id="loader" style="display: none">...</span> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -