text field not editable javascript code example Example: html input not editable <input readonly type="text" name="country" value="Norway" >