8
rated 0 times
[
10]
[
2]
/ answers: 1 / hits: 16033
/ 9 Years ago, tue, april 28, 2015, 12:00:00
I have the following piece of code in a contact form for a site I am designing:
<select id=Category name=Category>
<option value=0 selected=selected disabled>Category</option>
<option value=1>General Info</option>
<option value=2>Booking</option>
<option value=3>Auditions</option>
</select>
I would like set the menu such that the user cannot leave category
as the selected option. Is there any way to do this with HTML? If not, how would I do it with JavaScript?
Thank you
More From » html