Bootstrap Masterpage Search Box

Modified on Fri, Feb 9, 2018 at 9:41 AM

Search

{Search} is replaced by:


<div style="position: relative;'>


    <i style="position: absolute; right: 0px; padding: 10px 12px; cursor: pointer;" class="fa fa-search" onclick="SearchTerm('mSearchBox')" ></i>

    <input id="mSearchBox" type="search" class="SearchBox form-control" placeholder="Find Products..." style="padding-right: 30px;" onchange="SearchTerm('mSearchBox')" />

</div>


To design your own search box, make sure to:

  1. Add onchange event calling SearchTerm function and passing the unique id of the input box as parameter, or onclick event to a button to press.
  2. Add class name SearchBox to the input field to activate the Keyboard Enter Key press.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article