Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #disable #form
ADD COMMENT
Topic
Name
9+6 =