Side navigation
Ticket #4298: solution.txt
File solution.txt, 0.7 KB (added by Jeroen van de Pol, March 06, 2009 03:13PM UTC)
Update, now only validates fields that are in group of the current element, also only submitted a snippet.
... Line number 215
onkeyup: function(element) {
// Altered by Jeroen van de Pol, grouped variables will also be checked on keyup
if (element.name in this.submitted || element == this.lastElement ) {
var check = this;
if($(this.settings.groups).length > 0) {
$.each($(this.settings.groups), function(index, group){
$.each(group, function(group, elements){
// check if current element exist in this group
if(elements.indexOf(element.id) > -1) {
$.each(elements.split(' '), function(index, el){
if($('#'+el)) {
check.element($('#'+el));
}
});
}
});
});
}
this.element(element);
}
},
Download in other formats:
Original Format
File solution.txt, 0.7 KB (added by Jeroen van de Pol, March 06, 2009 03:13PM UTC)
Update, now only validates fields that are in group of the current element, also only submitted a snippet.
... Line number 215
onkeyup: function(element) {
// Altered by Jeroen van de Pol, grouped variables will also be checked on keyup
if (element.name in this.submitted || element == this.lastElement ) {
var check = this;
if($(this.settings.groups).length > 0) {
$.each($(this.settings.groups), function(index, group){
$.each(group, function(group, elements){
// check if current element exist in this group
if(elements.indexOf(element.id) > -1) {
$.each(elements.split(' '), function(index, el){
if($('#'+el)) {
check.element($('#'+el));
}
});
}
});
});
}
this.element(element);
}
},