https://i.sstatic.net/VlD20.png
I tried to bring the medicine I searched for to the top by clicking on the search button, but unfortunately it did not work. Can someone help me with writing the JavaScript code for this?
<form class="form-inline">
<input class="form-control mr-sm-2" id="filter" type="search" placeholder="Search" aria-label="Search" autocomplete="off">
</form>
<section id="section">
<div class="container">
<article class="row py-2">
<!--card1-->
<div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2 mx-auto py-2">
<div class="card mx-auto">
<img class="card-img-top img-fluid"
src="https://simplyexplainer.com/wp-content/uploads/2019/12/health-care-01.png" alt="Card image cap">
<div class="card-body text-center nav-text-mycss">
<h4>Adrenalin</h4>
<p>Lorem ipsum dolor sit amet consectetur.</p>
<div class="my-3"><button class="btn btn-success"><a href="adrenalin.html">Adrenalin</a></button></div>
</div>
</div>
</div>
<!--card1-->