Text after "
I use this Ajax form
@using (Ajax. BeginForm ("AddAttendeeManual", "Participant", New AjaxOptions {HttpMethod = "Post", onSuccess = "doneManualEmail"})) {@ Html.AntiForgeryToken () @ Html.ValidationSummary () & lt; Div class = "farm group" & gt; @ Html.TextBoxFor (M => m.SelectedManualEmail.Email, new {@class = "form control", placeholder = "email"}) & lt; / Div & gt; & Lt; Input type = "submit" id = "btn manual" class = "btn btn-default" value = "add" and "gt;" / & Gt; }
and a div
are both on the same view
Every time the form is submitted, I wanted to load that div that should have a partial view. What I have done
function doneManualEmail (isRequestSucceded) {$ (@ Html.IdFor (M => m.SelectedManualEmail.Email)) Val (''). Var url = $ ("# Invited People"). Data ('url'); $ .get (URL, function (data) {$ ('# PEOPLES') .HTML (data);}); };
Every form is submitted, I
Error Console:
Comments
Post a Comment