I have a search bar where if I type anything it processes the answer or the output in another Modal. and then, if I click [search] button, then the modal triggers. Now I want that if I press enter inside the box, it will trigger the button.
<form class="form-inline" >
<input class="form-control mr-sm-1" onkeyup="SearchFunction()" id="searchinputfeild"
type="search" placeholder="" aria-label="Search">
<a class="btn btn-outline-success my-2 my-sm-0" id="searchbutton" data-toggle="modal" data-
target="#resultsModal">Search</a>
</form>
I am very very weak at javascript. please give me suggestions on how can I make it possible.