select

Fired when item is selected. The passed arguments are:

  • item - the corresponding data item.
  • index - the index of the selected item.
  • selected - boolean value which indicates whether the item is selected or deselected.

<div id="listbox" ></div>
<script type="text/javascript">
    $(function () {
        $("#listbox").shieldListBox({
            dataSource: {
			    data: countries
		    },
            textTemplate: "{name}",
            valueTempate: "{id}",
            events: {
                select: function(e) {
                    alert("#list select:" + 
                            e.item.name + " : " + 
                            e.index + " : " + 
                            e.selected);
                }
            }
        });
    });

</script>