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 f6eb1b0 commit 2f6d3d9Copy full SHA for 2f6d3d9
src/jquery.validator.js
@@ -782,13 +782,18 @@
782
var me = this,
783
el = e.target;
784
785
- if ( $(el).is(INPUT_SELECTOR) ) {
786
- me.showMsg(el, {type: type, msg: msg});
+ if ( me.$el.is(el) ) {
+ if (isObject(type)) {
787
+ me.showMsg(type)
788
+ }
789
+ else if ( type === 'tip' ) {
790
+ me.$el.find(INPUT_SELECTOR +"["+ DATA_TIP +"]", el).each(function(){
791
+ me.showMsg(this, {type: type, msg: msg});
792
+ });
793
794
}
- else if ( type === 'tip' ) {
- me.$el.find(INPUT_SELECTOR +"["+ DATA_TIP +"]", el).each(function(){
- me.showMsg(this, {type: type, msg: msg});
- });
795
+ else {
796
+ me.showMsg(el, {type: type, msg: msg});
797
798
},
799
0 commit comments