How to go to postback on change of @Html.EditorFor in mvc?
<p>I have a <code>@Html.EditorFor</code> that represents a search field. I am trying to do a search in the controller when the text in the field is changed.
I can't figure out how to go to the postback every time the text is changed in the input, and not when the submit button is clicked.</p>

<p>Model:</p>

<pre><code>public class MainWindow
{
    [Key]
    public int MainWindowId { get; set; } 
    public string SearchedString { get; set; }
}
</code></pre>

<p>View:</p>

<pre><code>@using (Html.BeginForm())
{
    &lt;div&gt;
        &lt;label&gt;search:&lt;/label&gt;
        @Html.EditorFor(model =&gt; model.SearchedString, new htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(model =&gt; model.SearchedString, "", new { @class = "text-danger" })      
        &lt;input type="submit" value="search" class="btn btn-default" /&gt;
    &lt;/div&gt;
}
</code></pre>

<p>Controller:</p>

<pre><code>[HttpPost]
public ActionResult Index([Bind(Include = "MainWindowId,SearchedString")] MainWindow mw)
{
    ManageProduct mp = new ManageProduct();
    if (ModelState.IsValid)
    {
       //search code
        return View("Index",mw);
    }
    return View(mw);
}
</code></pre>