I am working on an MVC application and would like to add an X for clearing current search criteria to my search box - like the one that comes by default with using input type=search in html5:
Below you can see my current code
@using (Html.BeginForm())
{
<div class="input-group">
@Html.TextBox("SearchString", ViewBag.CurrentFilter as string, new { @class = "form-control", placeholder = "Search by Author or Title" })
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
}