readonly: input[type=text],input[type=password],input[type=teaxtarea]
disabled: All form elements, such as select, radio, checkbox, button, etc.
2) Operation:readonly: Users are not allowed to modify operations and do not affect any other operations
disabled: blocks all actions of users, including user click events, and obtains focus events
3) Form submission:readonly: The value of the form element can be submitted to the server.
disabled: The value of the form element will not be submitted to the server, that is, the server cannot obtain the value in this form element
Common applications:a>A unique identification code is prefilled for the user in a form, and the user does not allow changes, but the value needs to be passed when submitting, and its properties should be set at this time
for readonly;
b> Prevent repeated submission of forms, use javascript to disable the submit button (form button) after submitting the form.
c> Checkbox and radio set read-only: Disable default events
For example: bind(click,function(){return false;});