From 037d87d612046b0a453cdb4ab3d9809b38db1722 Mon Sep 17 00:00:00 2001 From: randyh360 Date: Wed, 21 May 2014 13:28:26 -0500 Subject: [PATCH] Fix for #412 --- jquery.form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.form.js b/jquery.form.js index 9606f91f..55ecb95b 100644 --- a/jquery.form.js +++ b/jquery.form.js @@ -109,7 +109,7 @@ $.fn.ajaxSubmit = function(options) { } method = options.type || this.attr2('method'); - action = options.url || this.attr2('action'); + action = options.url || this.attr('action'); url = (typeof action === 'string') ? $.trim(action) : ''; url = url || window.location.href || ''; @@ -508,7 +508,7 @@ $.fn.ajaxSubmit = function(options) { function doSubmit() { // make sure form attrs are set var t = $form.attr2('target'), - a = $form.attr2('action'), + a = $form.attr('action'), mp = 'multipart/form-data', et = $form.attr('enctype') || $form.attr('encoding') || mp;