Added pseudo selector for text input types to fix issue with default empty type attribute. Added tests and some test markup. Fixes #217

This commit is contained in:
Max Lynch
2012-04-10 23:18:58 -05:00
committed by Jörn Zaefferer
parent 02b10a6568
commit a436634fe8
3 changed files with 20 additions and 1 deletions

2
jquery.validate.js vendored
View File

@@ -323,7 +323,7 @@ $.extend($.validator, {
}
}
$(this.currentForm)
.validateDelegate("[type='text'], [type='password'], [type='file'], select, textarea, " +
.validateDelegate(":text, [type='password'], [type='file'], select, textarea, " +
"[type='number'], [type='search'] ,[type='tel'], [type='url'], " +
"[type='email'], [type='datetime'], [type='date'], [type='month'], " +
"[type='week'], [type='time'], [type='datetime-local'], " +