Input for disabled submitted after the value of the solution _ Experience Exchange

Source: Internet
Author: User

<input name= "Country" id= "Country" size=12 value= "disabled" The value was not presented at "disabled=" >
You cannot get this value when you submit it to the form form.
Change disabled= "Disabled" to ReadOnly = "ReadOnly"
According to the rules of the consortium: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12
Input that is set to disabled will have the following restrictions:
Cannot receive focus
is skipped when you use the TAB key
Probably not successful.

Input that is set to ReadOnly will have the following restrictions:
Can receive focus but cannot be modified
You can use the TAB key to navigate
It could be successful.
Only successful form elements are valid data and can be committed. Text entry boxes for disabled and readonly can only be modified by scripting the Value property.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.