From the course: JavaScript: Web Form Programming

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Form programming

Challenge: Form programming

From the course: JavaScript: Web Form Programming

Start my 1-month free trial

Challenge: Form programming

(upbeat music) - All right, let's take what we've learned in this chapter, and try a programming challenge. So here's what we're going to build, so this is an order form for Joe's Pizza Palace, and let's look at it in the browser to see what it does. All right, so here's my order form for Joe's Pizza Palace, and the user can select a variety of options for their pizza, using a set of form controls. So for example I can, choose the kind of sauce base I want, and the size of the pizza, I can choose my toppings and how many cans of soft drinks I would like, and notice that as I manipulate each control, the total order of the value is immediately updated, when a form control value changes. Okay, so in this case, the submit button doesn't do anything, the reset button however, resets the form controls to their default values, and notice that when I reset the form, the value of the total counter also resets, to reflect the…

Contents