Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

make input not editable for user js

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


document.getElementById('TextBoxID').readOnly = false;   //to  disable readonly
Comment

PREVIOUS NEXT
Code Example
Javascript :: import js in jupyter notebook 
Javascript :: string indexing in js 
Javascript :: javascript regex 
Javascript :: map of filtered data react 
Javascript :: link href javascript 
Javascript :: how to go to another page onclick in react 
Javascript :: date get full year 
Javascript :: jquery get dropdown list selected value 
Javascript :: call a function multiple times 
Javascript :: string literal javascript 
Javascript :: tonumber javascript 
Javascript :: node.js child processes 
Javascript :: tsconfig 
Javascript :: node filesystem change directory of a file 
Javascript :: window.addeventlistener 
Javascript :: tailwind config for nextjs 
Javascript :: body-parser deprecated 
Javascript :: mongodb mongoose push into nested array 
Javascript :: js how to filter only real numbers from decimals 
Javascript :: sfc in react 
Javascript :: stylesheet create 
Javascript :: How to add Strings as numbers in JavaScript 
Javascript :: javascript merge arrays of objects without duplicates 
Javascript :: switch alert 
Javascript :: .on click jquery 
Javascript :: useeffect react example 
Javascript :: check if an element is there in js 
Javascript :: js stop typing event 
Javascript :: make object to array javascript 
Javascript :: vue toggle boolean on click 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =