G
G
gularon2020-04-25 11:39:11
Bootstrap
gularon, 2020-04-25 11:39:11

Search customization in Bootstrap4. What should be done?

Tell me, there is a search form in Bootstrap4. For example in navbar-collapse :

<form class="form-inline my-2 my-lg-0">
        <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
        <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Поиск</button>
      </form>


Displayed as needed. I upload to the server.
I click on the search button - nothing happens.
Is there anything else that needs to be configured somewhere? But it's kind of like a template ... It should tune itself. Get into JS? If yes, then please write, I will drop all this, I will put a search from Yandex or Google. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2020-04-25
@gularon

You just added a form tag to the page. The form must have a handler, some kind of script that receives data from the form, does something with it, and returns the result.
Bootstrap is not aware not only of what and among what to look for, but also in general what this search is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question