Enables item.
Parameters:
formData=[{type: "input", label: "Login"}, {type: "input", label: "Password"}, {type: "button", name:"loginButton", value: "Log in", command:"Login"}, {type: "button", name:"logoutButton", value: "Log out", command:"Logout"}]; myForm = new dhtmlXForm("myForm", formData); ... function enableButton() { alert("You have logged in successfully."); myForm.enableItem("logoutButton"); myForm.disableItem("loginButton"); }
See also: