As the title, I need something along the lines of...
using (Ajax.BeginForm("MyAction",
new AjaxOptions {
OnComplete = "function() { mySucessFunction(this); }"
}))
<script>
function mySucessFunction(srcElem) {
alert(srcElem.id);
}
</script>
Any pointers? Thanks.