Inflearn Community Q&A
selet에서는 required가 안되는데 어떻게 하면되나요?
Written on
·
957
0
select에서는 required가 안되는데 어떻게 하면 되나요?
input에는 required가 되서 submit이 안되는데
select로 만든 "월" 만 정보 입력을 안해도 submit이 됩니다.
javascriptHTML/CSS
Quiz
41% of people got it wrong. Give it a try!
What are the most basic tags that define the structure of an HTML document?
<div>, <span>, <p>
<html>, <head>, <body>
<table>, <tr>, <td>
<form>, <input>, <button>
Answer 1
0
shinycoo1752
Instructor
Select 태그 내에 required="required" 속성을 넣어주시고 첫번째 미선택 option 태그의 value를 빈 문자열로 만들어주세요~
참고: https://stackoverflow.com/questions/44322824/select-required-not-working
감사합니다.





