Hi,
how to validate an input text before submitting or placing the cursor in another field?
I've tried this below but it doesn't work.
$(document).ready(function () {
$
("input").keyup(function() {
$
("#jander").validate({
rules
: {
'coche4[marca]': "required"
},
messages
: {
'coche4[marca]': 'This field is required'
}
});
});
});
Regards
Javier