Guys, this thing is very, very difficult to use. I have an extremley simple search box and can't get any of the list positioning to work in the most bootstrap environment.
I've spent hours fiddling with HTML and CSS and have basically given up. There should be a very simple example (the demo is useless) of the sort that jqueryui uses, stripped down and basic.
Guys, this thing is very, very difficult to use. I have an extremley simple search box and can't get any of the list positioning to work in the most bootstrap environment.
I've spent hours fiddling with HTML and CSS and have basically given up. There should be a very simple example (the demo is useless) of the sort that jqueryui uses, stripped down and basic.
`
`
` .searchlabel { height: 1.8em; font-size: 1.8em; }
.searchbox { height: 1.8em; width: 24em; font-size: 1.8em; }
.searchbutton { height: 1.8em; font-size: 1.8em; }
.searchwrapper { width: 48% !important; position: absolute; border: 1px dashed black; }
.autocompleter { background: #dddddd; position: absolute; width: 43em !important; top: 0; z-index: 100; border: 1px solid gray; }
.autocompleter-list { width: 100% !important; box-shadow: inset 0px 0px 6px rgba(0,0,0,0.1); list-style: none; margin: 0; padding: 0; text-align: left; -webkit-box-sizing: border-box; box-sizing: border-box; }
.autocompleter-item-selected { background: #ffffff; }
.autocompleter-item { padding: 6px 12px; color: #444444; font-size: 20px; cursor: pointer; }
.autocompleter-item:hover { background: #dbed8a; }
.autocompleter-item strong { background: #f9de8f; text-shadow: 0 1px 0 #ffffff; }
.autocompleter-item span { color: #bbbbbb; }
.autocompleter-hint { color: #ccc; text-align: left; top: -56px; font-weight: 400; left: 0; width: 100%; padding: 12px 12px 12px 13px; font-size: 24px; display: none; }
.autocompleter-hint span { color: transparent; }
.autocompleter-hint-show { display: block; }
.autocompleter-closed { display: none; } `
Forgive me for abandoning the project and answering you a few years later.
I've prepared an example: https://codesandbox.io/s/jquery-autocompleter-bootstrap-4-died3v CSS must be placed after defaults.
HTML
JavaScript
CSS