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(); })
Comments
Post a Comment