javascript - Why doesnt my .hide() or any JS code work? -
i'm pretty new javascript , programming in general, started coding little website , cant seem simple .hide() working.
<div id="x" style="width:100px; height:100px; background-color:red;"/>
js
$(document).ready( function() { $("#x").hide(); });
include in <head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
here's fiddle jquery library, works!
Comments
Post a Comment