{"action":"closed","issue":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/16","labels_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/16/comments","events_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/16/events","html_url":"https://github.com/running-coder/jquery-typeahead/issues/16","id":53731715,"number":16,"title":"Issue with drop-down list box and the antiquated IE8 browser","user":{"login":"MiArktos","id":10415374,"avatar_url":"https://avatars.githubusercontent.com/u/10415374?v=3","gravatar_id":"","url":"https://api.github.com/users/MiArktos","html_url":"https://github.com/MiArktos","followers_url":"https://api.github.com/users/MiArktos/followers","following_url":"https://api.github.com/users/MiArktos/following{/other_user}","gists_url":"https://api.github.com/users/MiArktos/gists{/gist_id}","starred_url":"https://api.github.com/users/MiArktos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiArktos/subscriptions","organizations_url":"https://api.github.com/users/MiArktos/orgs","repos_url":"https://api.github.com/users/MiArktos/repos","events_url":"https://api.github.com/users/MiArktos/events{/privacy}","received_events_url":"https://api.github.com/users/MiArktos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T09:45:33Z","updated_at":"2015-01-17T22:16:51Z","closed_at":"2015-01-17T22:16:51Z","body":"Hi,\r\n\r\nI use your Typeahead plug-in because\r\nit has a lot of functions out of the box and is very fast.\r\nThanks for your great plug-in and good documentation and live demos.\r\nDespite the fact that I’m a newbie with JavaScript and jquery it is very easy to use.\r\nIt works perfect with Firefox and Chrome browser.\r\nUnfortunately there is an issue with the antiquated IE8, I was not able to fix.\r\n\r\nI use jquery-1.11.2.js and typeeahead version 1.7.5 and the meta entry:\r\n  `<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">`\r\n\r\n- Because there is no trim function in IE8 I inserted\r\n```javascript\r\nif(typeof String.prototype.trim !== 'function') {\r\n  String.prototype.trim = function() {\r\n    return this.replace(/^\\s+|\\s+$/g, ''); \r\n  }\r\n}\r\n```\r\n- With the option “hint: true” the IE8 hangs, as workaround I disabled this feature.\r\n   You can see this with all demos with hint: true e.g. Beer v1\r\n\r\n- When I try to step through the drop-down list box with the key down \r\n    it automatically select the first item, instead to go through the list.\r\n    The drop-down list box is not removed when I click the submit button \r\n    or press the enter key.\r\n \r\nSome additional questions:\r\n  Is there a API function to get the latest JSON data obtained from the last Ajax request\r\n  like the API in datatables  https://datatables.net/reference/api/ajax.json%28%29\r\n  When I tried the demo bootstrap v1 I added a callback functions as in demo car v1, \r\n  but the callback functions wasn’t triggered. \r\n  How does work callbacks if selector options are used?\r\n  The callback function OnSubmit has no parameter \"obj\" as onResult and onClick.\r\n  How can I get the latest best match if only the enter key or submit button is pressed?\r\n  Is there a option to use the tab key to select a suggestion?"}}