And if so where would I put the second page of code. From reading some of the other questions here I finally realized that I needed to separate my javascript(jquery) code from my html which also helped with using a variable from one file to the next, however I have a second page of javascript(jquery) and I’m not sure how I should organize it all? or should I simply make another .js file for the second page? and then have two tags to both files?
Share
No, no, no, write organized and readable code.
Separate HTML, CSS and JS code, assets and keep them well organized.
see this How to organization JavaScript code in project for maintainability?