In this topic the selectedItem event is triggered when an item in the combobox is selected.
<body>
tag:
To write code in Client Side script
<script id="scriptInit" type="text/javascript">
function C1ComboBox1_OnClientChanged(e, data) {
var val = data.selectedItem.value;
$('#output').html('I selected the ' + val + ' airfare option. ');
}
</script>
To write code in Source View
<label id="output">
Please select fare option.</label>
The label should appear like the following
onclientchanged="C1ComboBox1_OnClientChanged"
function to the onclientchanged property so it appears like the following:
To write code in Source View
<cc1:C1ComboBox ID="C1ComboBox1" runat="server" Width="160px"
onclientchanged="C1ComboBox1_OnClientChanged">