Nitobi
Customer Login
Services
Products
About
Blogs
Contact
Home -> Product Knowledgebase Order Online | Free Trial Downloads

Nitobi Product Knowledgebase

Enabling and Disabling ComboBox with JavaScript


You can enable and disable a combobox at runtime by calling SetEnabled. To do this, you will need to create a block of JavaScript that calls this method.

<script language="javascript">

  function SetEnabled(ComboID, Isenabled)
  {
    // Grab the ComboBox object from ComboID
    var MyComboObject = $(ComboID).jsObject;

    MyComboObject.SetEnabled(Isenabled);
    // We return false so that the <a> tag doesnt do anything
    return false;
  }

</script>

Example use:

  // Disable the myCombo combobox
  SetEnabled(myCombo, false);

  // Enable a the myCombo combobox
  SetEnabled(myCombo, true);

View Printable Version

Comments:


Name:

Type the text you see above:

Comments:


Knowledgebase

To be notified of new articles when they're available, subscribe to our RSS feed.

Support Resources

Take advantage of our knowledgebase of product tutorials and tips, and our support forums!

Search Site


Sign up for our Newsletter:

Get industry articles and Nitobi company news in your inbox every couple of months — here's a sample!

Email:




Site RSS Feed  | All contents are (c) Copyright 2006, Nitobi Software Inc. All rights Reserved