Can I apply the required attribute to <select> fields in HTML5?

前端 未结 13 2389
不知归路
不知归路 2020-11-22 16:20

How can I check if a user has selected something from a doesn\'t support the new

13条回答
  •  一个人的身影
    2020-11-22 16:50

    Make the value of first item of selection box to blank.

    So when every you post the FORM you get blank value and using this way you would know that user hasn't selected anything from dropdown.

    
    

提交回复
热议问题