Answers for "javascript disable form"

0

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;
}
Posted by: Guest on July-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language