Disables item.
Parameters:
formData=[{type: "input", label: "Login"}, {type: "input", label: "Password"}, {type: "button", name:"loginButton", value: "Log in", command:"Login"}]; myForm = new dhtmlXForm("myForm", formData); ... function disableButton() { alert("You have exceeded the maximum number of login attempts for this session.") myForm.disableItem("loginButton"); }
See also: