selectedItem

Return the underlying data item object of the selected item:


<select id="ddl" ></select>

<script type="text/javascript">

    $(function () {
        $("#ddl").shieldDropDown({
            dataSource: {
			    data: countries
		    },
            enabled: false,
		    textTemplate: "{name}",
		    valueTemplate: "{code}"
       });
    });

    $("#ddl").swidget().selected(0, true) // select the first item
    
    $("#ddl").swidget().selectedItem(); // return the country object from the datasource to which dropdown item is bound 

</script>