I am trying to use the following search function found on Bootsnip.
I was hoping that this would submit when I press enter, but it only submits when press tab and highlight the search button or click on the button. Is there any way to alter this code so that it works upon pressing "Enter" on the keyboard.
Here is the code:
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="input-group custom-search-form">
<input type="text" class="form-control">
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div><!-- /input-group -->
</div>
</div>
</div>