Topic: Use autocomplete with bootstrap search

Rocks360 pro asked 6 years 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?

Marta Wierzbicka staff answered 6 years ago



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.1
  • Device: MacBook Pro
  • Browser: Safari
  • OS: macOS
  • Provided sample code: No
  • Provided link: No