DHTMLX Docs & Samples Explorer

hideItem(name, value)

Hides an item.

Parameters:

  • name - the id of item (the item's parameter 'name')
  • value - the value of a radio button ( the radio's parameter 'value'). Required for 'radio' items only
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 hideLoginButton() {
          alert("You have logged in successfully.");
          myForm.showItem("logoutButton");
          myForm.hideItem("loginButton");
}

See also: