I have an MVC application, and I am using Html.BeginForm to make forms. There are several forms on the page, each representing a tab in a row of tabs. I need to detect the "Enter" key being pressed on one of the tabs. Anyone know how to do this?
Code example -
<div>
@using (Html.BeginForm("MyAction", "MyController", FormMethod.Post, new { id = "MyForm1" }))
{
<div id="divId">
</div>
}
</div>
Thanks!