Niixie Posted November 16, 2011 Share Posted November 16, 2011 Hey PHPFreaks! I have a problem with jQuery, because, no matter how i do, or how i write, it just doesn't work! Nothing happends. To test if it works, i have this code. $(document).ready(function(){ $('p').hide(); }); But it doesn't do anything.. I also tried to do something in JavaScript, but it didn't work either. This is my head of the webpage <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Language" content="en-US" /> <script type="text/javascript" src="adds/jquery-func.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <link rel="shortcut icon" href="images/ico/telephone.ico" /> <link href="adds/styles.css" rel="stylesheet" type="text/css" /> This is the p that I'm trying to hide <div id="content-right"> <p>HEy hey!</p> </div> And heres a copy of my jquery-func.js $(document).ready(function(){ $('p').hide(); }); What do I do wrong, and what should i change?! Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/251240-jqueryjs-doesnt-work-no-matter-what-i-do/ Share on other sites More sharing options...
trq Posted November 16, 2011 Share Posted November 16, 2011 You need to include the jQuery library before you can use functionality it provides. Quote Link to comment https://forums.phpfreaks.com/topic/251240-jqueryjs-doesnt-work-no-matter-what-i-do/#findComment-1288630 Share on other sites More sharing options...
Niixie Posted November 16, 2011 Author Share Posted November 16, 2011 It works! ... I hate myself right now, spending hours to find out!... Quote Link to comment https://forums.phpfreaks.com/topic/251240-jqueryjs-doesnt-work-no-matter-what-i-do/#findComment-1288632 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.