Are you in need of this information?
https://example.com/code-sample
<form name="myForm" id="myForm">
<input type="text" />
<br><br>
<select name="s1">
<option value="">Select</option>
<option value="a">A</option>
<option value="b">B</option>
</select>
<br><br>
<input type="radio" name="radio" value="yes">Yes
<input type="radio" name="radio" value="no">No
Activate Form
function deactivateForm(){
var form = document.getElementById("myForm");
var elements = form.elements;
for (var i = 0, len = elements.length; i < len; ++i) {
elements[i].disabled = true;
}
}
deactivateForm();
document.getElementById("enableForm").addEventListener("click", activateFrm);
function activateFrm(){
var form = document.getElementById("myForm");
var elements = form.elements;
for (var i = 0, len = elements.length; i < len; ++i) {
elements[i].disabled = false;
}
}