Click here to Skip to main content
15,029,010 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
how do i use option tag in html and then based on the answer value set something to default


What I have tried:

yupp i tried could not solve it
Posted
Updated 25-Jun-21 1:50am
Comments
Chris Copeland 15-Jun-21 4:31am
   
So what have you tried? Can we see the code you've produced so we can provide guidance and suggestions? Can you also clarify on what you mean by "set something to default"? We have no idea what you're asking here without context.

1 solution

The option tag in HTML is used to choose an option from a Drop-Down menu. This tag can be used with or without any attributes and needed value can be sent to the server. The group of options can be created using optgroup Tag. It creates a group of related menu items.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900