set input not editable html code example
Example 1: html input not editable
<input readonly type="text" name="country" value="Norway" >
Example 2: make input not editable for user js
document.getElementById('TextBoxID').readOnly = true; //to enable readonly
document.getElementById('TextBoxID').readOnly = false; //to disable readonly