views:

28

answers:

1

All what I need to make any auto complete jquery plug-in to take the first char in the textbox and return all matched names for example from the server, then after writing the rest of chars I can filter the returned result by jquery not all the time posting the chars to the server and return the result.

I am using a plug-in that like this :

 $(function () {
            $("#autocomplete").autocomplete({
                source: function (request, response) {
                        $.ajax({
                            url: "Vendor/AutoComplete/",
                            type: "POST", dataType: "json",
                            data: { searchText: request.term, ColumnName: column },
                            success: function (data) {
                                Vendor = data;
                                response($.map(data, function (item) {
                                    return { label: item, value: item, id: item }
                                }))
                            }
                        })
                }
            });
        }); 
A: 

Hello

any one know a solution for this or I have to clarify anything.

Mazen