jquery does not link to html -


i new html , jquery,however have written html file , have added jquery reference in eclipse. both files (html , js) @ same location in eclipse. when run html, expect see jquery functions in output not show up, html output seen. why happening? there other way can see animation have put in through jquery or linking issue? below html , js files.

test.html:

<!doctype html> <html>     <head>         <title>behold!</title>         <link rel='stylesheet' type='text/css' href='http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css'/>         <script type='text/javascript' src='script.js'></script>         <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>     </head>     <body>         <div id="menu">             <h3>jquery</h3>             <div>                 <p>jquery javascript library makes websites absolutely stunning.</p>             </div>             <h3>jquery ui</h3>             <div>                 <p>jquery ui includes more jquery goodness!</p>             </div>             <h3>javascript</h3>             <div>                 <p>javascript programming language used in web browsers, , it's powers jquery , jquery ui. can learn javascript in <a href="http://www.codecademy.com/tracks/javascript" target="blank" style="text-decoration:none; color:#f39814">javascript track</a> here on codecademy.</a></p>             </div>         </div>     </body> </html> 

script.js file: -============

$(document).ready(function() {     $("#menu").accordion({collapsible: true, active: false}); }); 

thanks..

if you're using jquery ui, need load jquery lib. add references:

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"> 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -