Hello everyone ! I am coding a board based on bootstrap3. There's a database filled with the sound infos and I'm creating divs from it. I'd like to add a search bar which find the element in the page and scroll to it. I've already looked on jquery.scrollTo or javascript but I can't find how to do it !
Here's the search form I'd like to use :
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
And here's what the body looks like :
echo "<div id='EPsound".$j."' name='".$name[$j]."' class='col-md-6'></br>"; //créer une div pchq son
echo "<div class='sound center-block'>";
echo "<img src=".$artwork[$j]." class='img-thumbnail center-block' />";
echo "<span>$name[$j]</span>";
echo "<i class='fa fa-play fa-3x play' onclick='$onclickplay'></i>";
echo "<i class='fa fa-plus fa-3x plus' onclick='$onclickqueue'></i>";
echo "</div>";
echo "</div>";
Thank you so much for your help !