Hello, in this video, I am going to show you how to implement deselect form control, so the select
phone control is this.
It's a dropdown they call select in the form.
But if you're using the outside, for example, the concept will be called a dropdown.
So essentially a dropdown is selected, allows you to select an item, got basic form already here.
If you haven't watched the form control video, I highly recommend that you check that out.
OK, so to implement a select it, it is super simple.
So first of all, we're going to have we're going to have one of these just so it's better reformatting
if we were to add another
component below and we're going to pull a select tag and this is going to have a class of four that
select area does label and I'm going to put superheroic select.
So this is going to allow us to select our favorite superhero.
And inside of here, we you always want generally speaking, you always want an option that's selected
and yeah, you always want that.
And also should always have the first option, something like choose a superhero.
So it's basically informing the user what they need to do with this checkbox, you know, and thus it
conveys what the actual purpose of the checkboxes.
And then you would actually put all your options.
So option and you put a value just provided like one.
And this will correspond to what we are shooting.
So if we want to submit this form, our bottom, for example, in JavaScript, you could check for this
form, you can put an ID, get the, you know, option that's been selected, get the value.
Maybe one corresponds with Batman, for example.
Let me just take this total free option.
But you can have as many of you want this, let's say, to correspond, correspond with Superman and
the three corresponds with Yoda.
So this is just for our almost like our checks, not for the user.
They all see.
Is this like so and as you see, it is fully responsive as well.
So that's it.
That is how you implement to select the few more features like.
So using that you can mess around with a highly recommend that you do.
There will be a link to this in the description, this particular page on the bootstrap website.
If you have any questions, feel free to put me a message.
And as usual, I look forward to seeing you in the next video.