Perform the following steps to add navigation to our weather forecast:
scripts.js. The first thing we want to do is create an unordered list to hold our navigation. After the animation code we wrote earlier, but still inside the document ready statement, add the following bit of code:
var dotnav = $('<ul id="dotnav"></ul>');
First, we create a variable,
dotnav. Recall that a variable is just a container. Inside this container, we're going to create a jQuery object that holds an unordered list with the
id attribute of
var dotnav = $('<ul ...