Hi,
I have 3 textarea with required attribute. in that 2 textarea having ckeditor attached. I need to validate using jquery. How i will do that
i tried below code it is not working.
$("#next").click(function(e){
e.preventDefault();
CKEDITOR.instances.field1.updateElement();
CKEDITOR.instances.field2.updateElement();
$('#form').validate({
rules: {
field1: {
required: true
},
field2: {
required: true
},
field3: {
required: true
},
},
errorPlacement: function(){
alert("empty field");
return false;
}
});