Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html select required

<select name="color" id="color" required>
	<option value="" selected disabled hidden>Choose color...</option>
    <option value="R">Red</option>
    <option value="B">Blue</option>
</select>
Comment

select required

<label for="cars">Choose a car:</label>

<select name="cars" id="cars" required>
  <option value="">None</option>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>
Comment

required option for select tag

<!--- This option cannot be select and this will be default option too. -->

<option selected="true" disabled="disabled">Select a Option</option>

<!-- Here is a example : -->
<label for="payment">Choose a Type :</label>
<select name="payment" required>
  <option selected="true" disabled="disabled">Select a Option</option>
  <option value="recharge">Recharge</option>
  <option value="withdraw">Withdraw</option>
</select>
Comment

PREVIOUS NEXT
Code Example
Html :: mirror html video element 
Html :: how to make links open in a new window 
Html :: ascii corners 
Html :: add favicon to html 
Html :: whatsapp message html a tag 
Html :: jquery integration 
Html :: html video hide controls 
Html :: iframe youtube autoplay not working 
Html :: how to link to an email in html 
Html :: html starter 
Html :: html display only on mobile 
Html :: html how to make text not bold 
Html :: instagram post iframe 
Html :: a tag open in new tabn 
Html :: iframe pdf html5 
Html :: free ebooks 
Html :: event.preventdefault() in angular 
Html :: bootstrap table hover 
Html :: html link 
Html :: rel noopener noreferrer nofollow 
Html :: html link para descargar archivo de audio 
Html :: autocomplete html off 
Html :: calendar input 
Html :: how to make a background color in html 
Html :: nuxt route id nuxt link 
Html :: html5 audio tag autoplay loop 
Html :: dropdown menu html 
Html :: html a href 
Html :: meta responsive 
Html :: filter in v-html 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =