Search
 
SCRIPT & CODE EXAMPLE
 

HTML

default select option

<select>
  <option value="" selected disabled hidden>Choose here</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
  <option value="4">Four</option>
  <option value="5">Five</option>
</select>
Comment

select option default value

      <select defaultValue={'DEFAULT'} >
        <option value="DEFAULT" disabled>Choose a salutation ...</option>
        <option value="1">Mr</option>
        <option value="2">Mrs</option>
        <option value="3">Ms</option>
        <option value="4">Miss</option>
        <option value="5">Dr</option>
      </select>
Comment

select default value

<option selected>
5
</option>
Comment

html select default value

<option selected="selected">
3
</option>
Comment

html select default

<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
  	<option value="volvo">Volvo</option>
    <option value="saab" selected>Saab</option>
</select>  
Comment

PREVIOUS NEXT
Code Example
Html :: a tah 
Html :: ngfor index 
Html :: Insert fav icon to head tag 
Html :: input required 
Html :: make websites all-deivce compatible 
Html :: set textbox into center of div in bootstrap 
Html :: fa-fa-home 
Html :: html sound autoplay 
Html :: csrf laravel 5 
Html :: how to center h1 i nhtml 
Html :: bootstrap 5 datalist example 
Html :: textbox dropdown with manual input 
Html :: doctype 
Html :: html first line indent 
Html :: making rectangle in css 
Html :: python in html 
Html :: listen on contenteditable 
Html :: hotjar how to exclude elements 
Html :: bootstrap colors 
Html :: button to return to previous page html 
Html :: changeable href 
Html :: html5 video player 
Html :: html not displaying 
Html :: easyui datagrid tabs 
Html :: link open new tab 
Html :: laravel phpcs.xml 
Html :: info icon in html 
Html :: datatable pdfHtml5 pagesize 
Html :: meta http-equiv x-ua-compatible 
Html :: how can we open file manager by html 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =