Perfect! Thanks!
I'm using an editor (ckeditor). With this addition which is made in $("#form1").validate I'm now able to hide the generated error message if something will be entered in the editor.
Here the relevant parts of my code... HTH for someone...
updateTextArea1 on keyup
CKEDITOR.instances.editor1.on("instanceReady", function()
{
//set keyup event
this.document.on("keyup", updateTextArea1);
//and paste event
this.document.on("paste", updateTextArea1);
});
get the data of editor1, update the editor and hide the error message
function updateTextArea1()
{
CKEDITOR.tools.setTimeout( function()
{
var oEditor1 = CKEDITOR.instances.editor1;
var content1 = oEditor1.getData();
CKEDITOR.instances.editor1.updateElement();
$(".error.errorextra1").hide()
}, 0);
}
adding the additional class to the generated error message of jquery validator
var validator = $("#form1").validate({
showErrors: function(errorMap, errorList) {
this.defaultShowErrors();
$(this.currentForm).find('label[for=editor1].error').addClass('errorextra1');
$(this.currentForm).find('label[for=editor2].error').addClass('errorextra2');
},