I need to put 2 javascripts in one html page. Since they are tooooo big I want to keep them in js file. <head> <script type="text/javascript" src="/jquery1.js"></script> <script type="text/javascript" src="/jquery2.js"></script> </head> But when I keep the above code in html file, only one of the javascript seems to work. And, when I keep both the javascript source in the html tag they work fine but keeping them in separate two files as jquery1.js and jquery2.js (as above) only one of them seems to work. Please help me, what should I do?
Hmm, it should work just fine. You can test it by removing/checking each of them. You can also try including just jquery1 then have an include statement in jquery1 that includes jquery2.
thanks for your post....but i'm confused what you said..... can I add two javascripts code in the same file?? i really don't know anything about javascripts......