This is an example of using external javascript files and using the jquery ready() method to execute code when the DOM is loaded (ie, ready). To get this to work:
- Download index.html, mycode.js, and jquery-1.11.3.min.js to your computer.
- Note that I have not include the jquery file here, you'll have to grab this from other examples at the course website.
- Put all of the files in the same directory or folder.
- Open index.html in your browser and things should work as before, except for the fact that we are using external javascript files