Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript disable form

var form = document.getElementById("your_form_id");
var elements = form.elements;
for (var i = 0, len = elements.length; i < len; ++i) {
    elements[i].readOnly = true;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript string interpolation 
Javascript :: axios cancel previous request 
Javascript :: deleting key of json object 
Javascript :: access selected option in jquery 
Javascript :: how to merge two sorted arrays in javascript 
Javascript :: convert number to word js crore/lakh format 
Javascript :: create multiple collections in mongodb 
Javascript :: command to delete node modules 
Javascript :: how to remove timezone from date in javascript 
Javascript :: check template shopify 
Javascript :: react refresh 404 error 
Javascript :: difference between statement and expression 
Javascript :: table in text 
Javascript :: js reduce a array of straing 
Javascript :: wait function in javascript 
Javascript :: async await mongoose connection 
Javascript :: get data from formdata 
Javascript :: download a file nodejs 
Javascript :: add a Google Font to a VueJS 
Javascript :: react axios get cookie from response 
Javascript :: forloop in js 
Javascript :: jquery fadeout and remove 
Javascript :: angular get current route 
Javascript :: javascript find object in array 
Javascript :: javascript count time 
Javascript :: scrolltop in javascript 
Javascript :: merge objects javascript 
Javascript :: for in 
Javascript :: nestjs vscode debug 
Javascript :: how to read breakline in html 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =