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(); }); 

fiddle

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!

https://jsfiddle.net/m9u3vcwc/2/


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -