How to make an html input field readonly

No Comments

You need to use the READONLY attribute for the input fieldReadonly only prevents the user to change data in the input field.

Example:

<input type="text" name="info" id="info" READONLY />

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 22, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link