Skip to content

Commit 0c3860b

Browse files
committed
Replace deprecated :submit with standard [type=submit] selector.
1 parent 0cd98cd commit 0c3860b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,9 @@ function captureSubmittingElement(e) {
764764
/*jshint validthis:true */
765765
var target = e.target;
766766
var $el = $(target);
767-
if (!($el.is(":submit,input:image"))) {
767+
if (!($el.is("[type=submit],input:image"))) {
768768
// is this a child element of the submit el? (ex: a span within a button)
769-
var t = $el.closest(':submit');
769+
var t = $el.closest('[type=submit]');
770770
if (t.length === 0) {
771771
return;
772772
}

0 commit comments

Comments
 (0)