in your main page... you link to jquery.js:
<script type="text/javascript" src="/my/path/to/jquery.js"></script> Then you can either write inline javascript under that... <script type="text/javascript"> $(document).ready(function() { alert("I am ready"); }); </script> ... or you simply link to other external scripts: <script type="text/javascript" src="/my/path/to/myExternalJS.js"></script> ...as many times as you need to. <script type="text/javascript" src="/my/path/to/myOtherExternalJS.js"></script> There's no functional difference between using an external .js file or putting your JS in the page itself. Arguably, it's easier to maintain if it's well-organized in included files... but functionally no different. Well, there's the advantage of the .js file being cached in the browser in subsequent page requests... but other than that, functionally no different :) Understand that doing <script src="/my/path/to/js.js"></script> is essentially including the .js on that page. The only thing to bear in mind is that the files will load in the order they're specified. So make sure your include to the jQuery file is first. On Wed, Sep 30, 2009 at 6:46 PM, Glen_H <glen.f.he...@gmail.com> wrote: > > I am confused as to how to link an external JQuery file to my web > page. I understand using <script src=""/>. My question is regarding > the file I downloaded from Jquery.com. Do I add code to that file and > link it, or do I link that file and then create a new file with > javascript in it and link that as well? > > Do I create a javascript file and somehow link the Jquery file to that > javascript file? > > > I guess I would need a step by step walkthrough on how to set up > Jquery using all external files. > > > thanks in advance guys > -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.