selectbox에서 선택된 기본값을 보여주면서

실제 selectbox에서는 기본값을 보이지 않게 하는 방법

 

 

<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>

 

 

 

selected disabled hidden 3콤보를 날려주면 된다

 

 

https://stackoverflow.com/questions/3518002/how-can-i-set-the-default-value-for-an-html-select-element?rq=1

 

How can I set the default value for an HTML

element below would cause thecontaining my provided "value" to be selected by default:

 

+ Recent posts