Submit Form on CheckBox Click using jQuery in ASP.Net MVC

Last Reply one year ago By dharmendr

Posted one year ago

hello,

below code works fine, the only problem is i want to submit the form on checkbox list selected event instead of button click so each time checkbox list change uncheck / check it should submit the form

pls advice

@model List<MVCApp.Models.FirstCategories>
@using (@Html.BeginForm("CheckboxListTopcategoryMenu_post", "Application", FormMethod.Get))
{
    for (int i = 0; i < Model.Count(); i++)
    {
        @Html.HiddenFor(m => m[i].id)
        @Html.HiddenFor(m => m[i].Title)
        @Html.CheckBoxFor(m => m[i].isSelected)
        @Html.DisplayFor(m => m[i].Title)
    }
    <input id="Button2" type="submit" class="btn red" value="Search" />
}

 

This question does not have replies that have been liked.