Skip to content

Commit 0b51e70

Browse files
committed
Merge pull request posabsolute#679 from Arney/master
past and future referenced element not restricted to 'input' field
2 parents ebc3f5b + cd7dbea commit 0b51e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.validationEngine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@
11431143
_past: function(form, field, rules, i, options) {
11441144

11451145
var p=rules[i + 1];
1146-
var fieldAlt = $(form.find("input[name='" + p.replace(/^#+/, '') + "']"));
1146+
var fieldAlt = $(form.find("*[name='" + p.replace(/^#+/, '') + "']"));
11471147
var pdate;
11481148

11491149
if (p.toLowerCase() == "now") {
@@ -1176,7 +1176,7 @@
11761176
_future: function(form, field, rules, i, options) {
11771177

11781178
var p=rules[i + 1];
1179-
var fieldAlt = $(form.find("input[name='" + p.replace(/^#+/, '') + "']"));
1179+
var fieldAlt = $(form.find("*[name='" + p.replace(/^#+/, '') + "']"));
11801180
var pdate;
11811181

11821182
if (p.toLowerCase() == "now") {

0 commit comments

Comments
 (0)