🤩
Windframe Import update is finally here!

Autocomplete

Bootstrap Autocomplete

Bootstrap 5 Autocomplete anticipates words based on the first few letters typed by the user. It accepts a list of suggestions in the form of a Array. The and arrow keys can be used to traverse through options, and the key can be used to choose the required option.

Default Autocomplete

Bootstrap Autocomplete

######Script

js
<script defer type="module">
var demo1 = new CDBAutocomplete({
selector: '#cdb-autocomplete',
minChars: 1,
source: function (term, suggest) {
term = term.toLowerCase();
var choices = [
'ActionScript',
'AppleScript',
'Asp',
'Assembly',
'BASIC',
'Batch',
'C',
'C++',
'CSS',
'Clojure',
'COBOL',
'ColdFusion',
'Erlang',
'Fortran',
'Groovy',
'Haskell',
'HTML',
'Java',
'JavaScript',
'Lisp',
'Perl',
'PHP',
'PowerShell',
'Python',
'Ruby',
'Scala',
'Scheme',
'SQL',
'TeX',
'XML',
];
var suggestions = [];
for (var i = 0; i < choices.length; i++)
if (~choices[i].toLowerCase().indexOf(term))
suggestions.push(choices[i]);
suggest(suggestions);
},
});
</script>

######HTML

html
<div class="cdb-form" style="width: 100%">
<input type="text" class="form-control" id="cdb-autocomplete" name="q" />
<label>Email</label>
</div>

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast