Adding a Select Element to the Form
Let's add a select element to the form.
Giving a choice to the user
Consider we want to give the user the option to select which picture to show.
We should start with downloading another picture from the internet and saving it to the public/
.
For this exercise, a picture of an apple on a stack of books is chosen.
It is saved to public/apple.jpg
.
Let’s give the user a choice by adding a select
element to the form:
Get hands-on with 1400+ tech skills courses.