Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

simple bootstrap-only replacement for typeahead

License

Notifications You must be signed in to change notification settings

callums-archive/searchahead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

searchahead v1.0.1

simple bootstrap-only replacement for typeahead solely.

Fiddle

Feel Free to Fiddle: https://jsfiddle.net/howzitcal/euaogw12/

Implementation

<div class="form-group">
  <label for="findUser">Search Users</label>
  <input type="text" class="form-control" placeholder="eg. howzitcal" name="findUser" id="findUser">
</div>
document.addEventListener("DOMContentLoaded", function(){
  new searchahead('#findUser', {
    // local: ["User 1", "User 2", "User 3", "User 4"],
    remote: "/api/find/user?user=%TERM",
    limit: 5,
    minLength: 2
  });
});

Screenshots

ScreenShot 2

ScreenShot 1

Changelog

  • V1.0.1 - Fixed miner issue where the click function doesn't work in the drop down due to a element focus issue