Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#project").autocomplete({
- minLength: 0,
- source: function (request, response) {
- //In success of ajax call i fill request(projects)
- response(projects);
- },
- open: function (event, ui) {
- var len = $('.ui-autocomplete > li').length;
- //I can access projects here but i need filtered data list coming from server which is passed to response callback
- $('.ui-autocomplete > li').css("background-color", "yellow");
- for (var i = 0; i < len; i++) {
- // Here i use indexof('+') on each list item's label text and apply css but how to get the list here ??
- }
- $('#count').html('Founded ' + len + ' results');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement