[英]How to integrate ck-editor with jquery validate?
我想將CK-editor與jquery驗證集成,但它不起作用。
$("#commentForm").validate({
rules: {
txtckeditor: "required",
},
messages: {
txtckeditor: "This field is required.",
onkeyup: false,
onblur: true
});
如何解決這個問題呢 ?
在調用驗證之前嘗試類似:
CKEDITOR.instances.txtckeditor.updateElement(); // then your validate call
$("#commentForm").validate({
rules: {
....
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.