Does the select element have the required attribute?
相关问题
- Custom Attribute to Process info before a method i
- How to bind a dropdown list inside jqgrid row cell
- FlagsAttribute what for?
- Axis SecureSocketFactory - Setting the constructor
- WooCommerce: check if product has attribute
相关文章
- HTML5 control
- Passing static array in attribute
- What other neat tricks does the SpecialNameAttribu
- Any way in Visual Studio to not break on throwing
- How can I type hint an attribute in Python 3.5?
- How to solve “Both use the XML type name X, use XM
- Adding additional attributes to each property of a
- Sort dropdown list
Yes you can use required attribute in HTML5. But remember, first value should be empty.
Here you get the more example:
http://dev.w3.org/html5/spec-author-view/the-select-element.html#the-select-element
Yes it does, but currently it is not supported by any version of all major browsers. This includes Safari, Chrome, Firefox, and IE.
It is possible but (just Arif said above) it is important (obviously) that you use the first option without value like:
You can see more info at: http://www.maxdesign.com.au/2012/11/03/select-required/
Yes it has a required attribute, you can use it as follows
Reference :
HTML Select required Attribute (W3C)