I am using Ajax.BeginForm like this:
@using (Ajax.BeginForm("PostAction", null, new AjaxOptions { HttpMethod = "post", UpdateTargetId = "TargetID", OnComplete = "OnComplete" }, new { @class = "" }))
In the javascript method OnComplete how can I find the form that was submitted? (Or even the target ID)
I need to access data attributes of the forms container.
Thanks.
you can send id or name of the form to your javascript with somethink like thsi
javascript