WebCombo provides a client side method to get the value from the selected row.
In this topic, you will learn how to use Value method.
To get the value of the selected row in WebCombo
- Drag a HTML button and leave the Id as it is, which is
Button1.
- Double click the HTML button and add the following code in the defined client-side
event handler:
function Button1_onclick()
{
var WebCombo1 = ISGetObject("WebCombo1");
var result = WebCombo1.Value
alert(result);
}
|
- Run the project.