We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588306a commit 3d45e1bCopy full SHA for 3d45e1b
jquery.form.js
@@ -286,7 +286,7 @@ $.fn.ajaxSubmit = function(options) {
286
var useProp = !!$.fn.prop;
287
var deferred = $.Deferred();
288
289
- if ($(':input[name=submit],:input[id=submit]', form).length) {
+ if ($('[name=submit],[id=submit]', form).length) {
290
// if there is an input with a name or id of 'submit' then we won't be
291
// able to invoke the submit fn on the form (at least not x-browser)
292
alert('Error: Form elements must not have name or id of "submit".');
0 commit comments