diff --git a/src/jquery.unobtrusive-ajax.js b/src/jquery.unobtrusive-ajax.js index ab71c5e..4184b1c 100644 --- a/src/jquery.unobtrusive-ajax.js +++ b/src/jquery.unobtrusive-ajax.js @@ -172,8 +172,8 @@ return; } asyncRequest(this, { - url: this.action, - type: this.method || "GET", + url: clickTarget && clickTarget.attr("formaction") || this.action, + type: clickTarget && clickTarget.attr("formmethod") || this.method || "GET", data: clickInfo.concat($(this).serializeArray()) }); });