select

This event is fired when ComboBox item is selected. The passed arguments are:

  • item - the corresponding data item.
  • index - the index of the selected item.

<input id="combo" ></input>

<script type="text/javascript">

    $(function () {
        $("#combo").shieldComboBox({
            dataSource: {
			    data: countries
		    },
		    textTemplate: "{name}",
		    valueTemplate: "{code}",
            inputTemplate: "{name}",
            events: {
                select: function(e) {
                    alert("#list select:" + 
                            e.item.name + " : " + 
                            e.index);
                }
            }
       });
    });

</script>