javascript - Ajax form: OnSuccess, load partial div -


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 InvitedAttendees method, but do not see my partial view. The first Jquery line works fine but partial footage does not work to load. I'm missing?

Error Console: enter image description here


Comments