Intersoft WebCombo Documentation
How-to: Get the text and value of multiple selection WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Get the text and value of multiple selection WebCombo

Glossary Item Box

You can get the text and value of multiple selection WebCombo using GetMultipleValuesText and GetMultipleValuesValue methods.

In this topic, you will learn how to implement those methods.

To get the text and value of multiple selection using client side API

  1. Drag a WebCombo instance into the WebForm.
  2. Drag a HTML button and leave the Id as it is, which is Button1.
  3. To get the text of multiple selection combo, double click the HTML button and add the following code in the defined client side event handler:

    JavaScript Copy ImageCopy Code
    function Button1_onclick()
    {
       var combo = ISGetObject("WebCombo1");
       alert(combo.GetMultipleValuesText());
       return true;
    }

  4. To get the value of multiple selection combo, double click the HTML button and add the following code in the defined client side event handler:

    JavaScript Copy ImageCopy Code
    function Button1_onclick()
    {
       var combo = ISGetObject("WebCombo1");
       alert(combo.GetMultipleValuesValue());
       return true;
    }

  5. Run the project.

See Also