Guest User

Untitled

a guest
May 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $('#some-input-field').autocomplete(
  2. '/some/ajax/url',
  3. {
  4. minChars: 2,
  5. delay: 500,
  6. autoFill: true,
  7. formatItem: formatHostname
  8. });
  9.  
  10. function formatHostname(row) {
  11. return row[0] + "<br /><em>" + row[1] + "</em>";
  12. };
Add Comment
Please, Sign In to add comment