Menu
Hi,
using jQuery, 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.
[CODE]$(document).ready(function() {
$(“#form”).validate({
rules: {
name: “coche4[marca]”,
required: true
}
},
messages: {
comment: “You must insert something.”
}
});
});
Regards
Javier