Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#some-input-field').autocomplete(
- '/some/ajax/url',
- {
- minChars: 2,
- delay: 500,
- autoFill: true,
- formatItem: formatHostname
- });
- function formatHostname(row) {
- return row[0] + "<br /><em>" + row[1] + "</em>";
- };
Add Comment
Please, Sign In to add comment