text

Returns the selected item text:


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

<script type="text/javascript">

    $(function () {
        $("#combo").shieldComboBox({
            dataSource: {
			    data: countries
		    },
		    textTemplate: "{name}",
		    valueTemplate: "{code}",
            inputTemplate: "{name}"
       });
      
        $("#combo").swidget().value(1) // select the item with value (in this case {code}) equals to 1
   
        $("#combo").swidget().text(); // return array with one element - the selected item's text

    });

</script>