cannot convert to object
- by Dazz
if i execute the following code i get a cannot convert to object error;
Uncaught exception: TypeError: Cannot convert 'validation.messages.field' to object
$.fn.validate = function(validation) {
$.each(validation.rules, function(field, fieldRules){
$.each(fieldRules, function(rule, ruleValue){
var fieldValue = $('[name=' +…