In my auto complete I want the person to only be able to enter the values in the list.
<script>
var data = [{"Disabled":false,"Group":null,"Selected":false,"Text":"Worsley Wigwams","Value":"5c2c1add-c1ca-43e5-9ce9-55a63c2052be"},{"Disabled":false,"Group":null,"Selected":false,"Text":"Peters Amazing Builders","Value":"d85fda94-0301-4eac-b8bf-5e5220cf1cfe"},{"Disabled":false,"Group":null,"Selected":false,"Text":"Hancocks Hammers","Value":"893ccd71-9af9-4f5b-9977-678ccc2a97f2"},{"Disabled":false,"Group":null,"Selected":false,"Text":"PH Services","Value":"eaba37db-54ad-4cc7-8b1b-6ab3e0e84447"},{"Disabled":false,"Group":null,"Selected":false,"Text":"Walkden Construction","Value":"1ebb1508-9336-478e-baf5-c4139507be3d"},{"Disabled":false,"Group":null,"Selected":false,"Text":"Little Hultons Little Builders","Value":"c471598c-485b-4ea0-b362-f4a46af70650"}];
$(function () {
var value = $('#Subcontractor_Description').val();
$('#Subcontractor_Description').ejAutocomplete({
dataSource: data,
fields: { key: "Text", text: "Text" },
highlightSearch: true,
showRoundedCorner: true,
value: value
});
});
</script>