Answers for "how to make input field not editable in javascript"

7

html input not editable

<input readonly type="text" name="country" value="Norway" >
Posted by: Guest on March-12-2021
1

javascript set readonly property

document.getElementById('InputFieldID').readOnly = true;
Posted by: Guest on March-07-2020
1

make input not editable for user js

document.getElementById('TextBoxID').readOnly = true;    //to enable readonly


document.getElementById('TextBoxID').readOnly = false;   //to  disable readonly
Posted by: Guest on May-16-2021

Code answers related to "how to make input field not editable in javascript"

Browse Popular Code Answers by Language