I have been running jquery validation and summernote side by side for a while now successfully.
it was working and now I am getting an error on form.valid(). The note field doesn't need to be validated.
I have stripped my code down to the bare minimum, and whittled down the Ignore settings - if I remove the ignore settings it works, if I have ignore settings, it breaks, with a "validator is undefined" error
I have set up a fiddle so you can see it working and not working, it's currently set not to work
http://jsfiddle.net/JGuymer/83q0r21s/22/
<form id="form">
<textarea id="textarea"></textarea>
<a id="clickme" href="#">click Me</a>
</form>
JQuery:
$(document).ready(function() {
$("#textarea").summernote();
//uncomment to work
//$('#form').validate();
//uncomment to fail
$('#form').validate({ignore:[]})
$("#clickme").click(function(){
validate();
return false;
})
});
function validate() {
if ($('#form').valid()) {
alert('valid');
}
}
Any ideas would be appreciated
Thanks James