Clarification regarding "depends: function(field) {}
anushac243 opened this issue · 1 comments
anushac243 commented
Hi,
This might be silly but what is the argument being passed to the function in 'depends'? Is it the name of the field that it depends on or the field being validated?
rickharrison commented
It is an object with information about that field: https://github.com/rickharrison/validate.js/blob/master/validate.js#L242