Answers for "make input not editableµ"

7

html input not editable

<input readonly type="text" name="country" value="Norway" >
Posted by: Guest on March-12-2021
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

Browse Popular Code Answers by Language