Run
Online Code Editor
Click here to make the input field readonly:
Note:
After clicking on the checkbox, the inpt field will be disable for writing.