Car Select | Sololearn: Learn to code for FREE!


Car Select

Hello ALL! I am still learning but was hoping to have some help with this. I am adding to my code each day to try and learn bits and bits at a time. With the Car Select Code im working on when you press 'submit' a message displays saying "This is Mercedes"( or whatever car that was selected) What im looking to do is after pressing 'submit' for another select option box to appear below the message with a submit button. Within the select option I want to add car modles. and once i hit submit It will display information about that car. Thank you for your help! :)

1/3/2019 6:55:13 PM

Steven Schick

1 Answer

New Answer


You can write the html for the second option box as normal. The secret is to give it a css display of none to start with. When you click the first submit you can change the display property to 'block' or any other visible display value. You'll have to do some other stuff to have the second option select contain the models of the car type that was first selected. For now, try the display and let me know how it goes 👍