I have called Ajax.BeginForm inside a div element, so I want to get the div element which the form is in. i.e. I want an equivalent of
function function1(event){
var table = $(event.target).parents("table");
}
which can be used from the Ajax.beginform’s onsuccess function. Can anyone help here?
It turned out that, within the onsuccess function, “this” refers to the form element. So I could easily use,
or