From the course: Building HTML5 Forms with Dreamweaver
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting a constrained input - Dreamweaver Tutorial
From the course: Building HTML5 Forms with Dreamweaver
Setting a constrained input
- [Instructor] Sometimes it's valuable, even necessary to constrain input values to a set range. For example, if you're filling orders for the new iPhone, and you're willing to fill an order between one and up 100, then you're going to want to constrain the user's input to something within that range. You're also going to want to make sure that nobody accidentally enters something other than an integer. So, for example, they can't order 3.5 iPhones. So, let's set that up. The syntax here is getting complex enough that this is a good time to invoke and rely on the expanded section of the properties panel for different form elements. With a number selected in my code, I can define high, low, and step values. First, I'll start with the basic code. Next, I'll invoke the Properties Inspector. I'll select the input type in the code, and the Properties Inspector responds by providing context helpful options. Let's choose a suggested value, and we want people to order the maximum number, so…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.