Topic: Use autocomplete with bootstrap search
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?
Add comment
Marta Szymanska staff pro premium answered 6 years ago
Hi,
try my solution from this forum thread: https://mdbootstrap.com/support/jquery/how-to-use-autocomplete-with-form-inline-and-a-submit-button/.
Best,
Marta
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: 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
Related topics