Skip to content

Commit 3d45e1b

Browse files
committed
Remove depreated :input selector and just use attribute selectors since we are already searching within form context.
1 parent 588306a commit 3d45e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ $.fn.ajaxSubmit = function(options) {
286286
var useProp = !!$.fn.prop;
287287
var deferred = $.Deferred();
288288

289-
if ($(':input[name=submit],:input[id=submit]', form).length) {
289+
if ($('[name=submit],[id=submit]', form).length) {
290290
// if there is an input with a name or id of 'submit' then we won't be
291291
// able to invoke the submit fn on the form (at least not x-browser)
292292
alert('Error: Form elements must not have name or id of "submit".');

0 commit comments

Comments
 (0)