Tag:HTML form properties

  • HTML form control disable property readonly vs disabled


    There are two ways to disable form submission in HTML 1. Addreadonly=’readonly’Properties 2. Adddisabled=’disabled’Properties For example: <input type=”text” value=”” readonly=”readonly” /> <input type=”text” value=”” disabled=”disabled” /> Both controls in the example are not modifiable. But they also have some differences! From the literal meaning, we can see that the control that tries the readonly property […]