javascript - Trying for .show() and .hide() not working -


<div id ="instant-view"> <textarea id="upload-data-text" placeholder="copy & paste data here"></textarea> </div>  <script> $("#instant-view").hide(); </script> 

here the id "#instant-view" not hiding, not getting whats going wrong. using jquery though

wrap code inside document's ready event like,

$(document).ready(function(){   $("#instant-view").hide(); }) 

working fiddle


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -