Skip to content

Commit 5792909

Browse files
author
Adam Rich
committed
Add additional HTML5 input types to validate
1 parent 48ed457 commit 5792909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ $.extend($.validator, {
303303
validator.settings[eventType] && validator.settings[eventType].call(validator, this[0] );
304304
}
305305
$(this.currentForm)
306-
.validateDelegate(":text, :password, :file, select, textarea", "focusin focusout keyup", delegate)
306+
.validateDelegate(":text, :password, :file, select, textarea, [type=email], [type=url], [type=search], [type=tel]", "focusin focusout keyup", delegate)
307307
.validateDelegate(":radio, :checkbox, select, option", "click", delegate);
308308

309309
if (this.settings.invalidHandler)

0 commit comments

Comments
 (0)