Use autocomplete with bootstrap search


Topic: Use autocomplete with bootstrap search

Rocks360 pro asked a year ago

When I try to add autocomplete to my search div like the following:
<div class="col-md-12 col-sm-12">
    <form action="/search" method="get" class="form-inline search-form justify-content-md-center">
        <input class="form-control  mdb-autocomplete input-search my-1 ml-1" type="text" id="form-autocomplete" name="sSearch" placeholder="Search" aria-label="Search">
        <button href="#" class="btn btn-outline-white btn-md px-3" type="submit"><i class="fa fa-search" aria-hidden="true"></i></button>
    </form>
</div>
How can I use md autocomplete without the md-form css class attribute?

Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.5.1
  • Device: MacBook Pro
  • Browser: Safari
  • OS: macOS
  • Provided sample code: No
  • Provided link: No