I am new to jquery and javascript so I haven't been able to figure this problem out; nor have my google-fu skills helping me today.
I developed a page with HTML and Javascript/Jquery, placing all the jquery between script tags and all was well. When I was done the page I realized that I wanted the same javascript on another page so I put all that jquery/javascript into an external file and tried to include it.
That's where things went downhill. The javascript doesn't work at all on the initial page. Nothing happens. I checked the error console and I am not getting any JS errors.
Why does this not work and how do I get it to work?
This is the JS code in the external file: http://pastebin.com/wHBmbHLs
alert('file loaded');at the top of the external file, does the alert happen?