From the course: JavaScript: Web Form Programming

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Challenge: Dynamic forms

Challenge: Dynamic forms

(electronic music) - [Instructor] All right, let's try another programming challenge. So in this challenge, we're going to accomplish a few different things to create a dynamic form. So let's take a look at the finished challenge first so you can see what it is you're going to build. So here I have a basic form with a text field, a date, and a button. So for the text field, I've implemented a feature where I can type Shift + Escape to clear out the current content instead of having to select all and then delete. So you can see as I type along, and then I type Shift + Escape, and the content has cleared, okay? So Shift + Escape. So that's the first part of the challenge, which is add the Shift + Escape feature to the text field in order to clear the content, all right? The second feature I've implemented is that I've given the date field the ability to be initialized to today's date. Now, standard date fields don't…

Contents