javascript - Uncaught TypeError: Object #<error> has no method 'call' -
using jquery validate plugin, want show/hide error when element's blur event called, dont want show error message type. fix tried
$('#form').validate({ onfocusout: true, onkeyup: false });
but click outside element throws error
uncaught typeerror: object #<error> has no method 'call'
its onfocusout
not onfoucusout
, change to:
$('#form').validate({ onfocusout: function(element) { $(element).valid(); }, onkeyup: function(element) { $(element).valid(); } });
Comments
Post a Comment