textTemplate

A template string or a function used for formatting each item being displayed in the AutoComplete suggestion list.

A live demo and code examples of this functionality can be found here.


<input id="autocomplete"></input>

<script type="text/javascript">

     $(function () {
       $("#autocomplete").shieldAutoComplete({
            dataSource: {
                data: myData
            },
            textTemplate: "{name}"
        });
    });

</script>