Readonly attribute of input: you can modify the input value through JS and submit it to the server to obtain the modified value.
The readonly attribute of textbox: Modify the text value through JS and submit it to the server. The server provider cannot obtain the modified text value, that is, it cannot modify the text value through JS and submit it back to the server,However, you can use reqest. Form [ID] to obtain the modified JS value.. The text value remains unchanged after being uploaded back to the server.
The enabled attribute of textbox is similar to readonly,First, the style will become gray, and reqest. Form [ID] will be empty.
You can add the readonly attribute to the attribute of textbox in the background to achieve the same effect as setting input to readonly.
Reprinted from: http://www.cnblogs.com/longjxchina/archive/2010/11/29/1891418.html