Current section: Inputs 59 exercises
Problem

Select

Loading exercise

Transcript

00:00 All right. Now we want to have a select that allows you to select an admin, teacher, parent, or student. So this is an onboarding form for some educational institution, I suppose. And we're going to be using the select element and option. So this is not your typical input element with a special type. This is a completely different set of elements that you're going to be

00:20 using. And we want to also have an option that is please select an option. And when it's submitted, if the please select an option is selected, then the value of our account type should be an empty string. But then for each one of these others, if that's selected, it will be just the lowercase

00:39 version of what was selected. So that is your job in this exercise. Have a good time.