Creating a Wish List Program
Introducing the Wish List Program
The Wish List application uses an HTML form to accept input from a user, which it adds to an array and to an HTML list. A Print button allows a user to create a nicely formatted and sorted list that she can print out and deliver to the genie of her choice.
Viewing the finished program
To get an idea of how the finished Wish List program will look and function, follow these steps:
- Open our Public Dashboard in JSFiddle.net by going to
Find the program named “Chapter 13 – Wish List – Finished” and click the title to open it.
You should see the finished Wish List program, as shown in Figure 13-1.
Enter something into the HTML input field — World Peace, for example — and click the Add It button.
The item you entered will be added as a list item and removed from the input field.
Add a few more items to your list.
When you get to about five or six items, move on to the next step.
Click the Print Your List ...