我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何将ck-editor与jquery validate集成?

I would like to Integrate CK-editor with jquery validate, but it not working.

$("#commentForm").validate({
        rules: {
            txtckeditor: "required",
        },
        messages: {
            txtckeditor: "This field is required.",
          onkeyup: false,
        onblur: true
});

How to solve this problem ?

Before calling the validate try something like:

CKEDITOR.instances.txtckeditor.updateElement(); // then your validate call
$("#commentForm").validate({
        rules: {
                 ....

近期文章

  • jQuery可排序PHP
  • Insert Into不会插入Php / Mysqli
  • 从页面表中获取标题
  • php:有没有理由在回显数据之前先填充结果数组
  • PHP图像上传器将PNG转换为8位
  • 在jQuery / HTML / Ajax中使用PHP会话
  • mod_rewrite导致$ _POST无法访问PHP
  • 安全API(JSONP)仅检查域
  • 找出html.tpl.php中的父链接[关闭]
  • android用户名密码通过json发送到php - > sql
  • IN()与字符串作为参数不与PDO一起使用
  • php数组 - 删除重复和相应的值
  • 在重复键更新时插入返回值0
  • 通过在输入文件解析中删除eval()来保护片段
  • 使用PHP在窗体中创建下拉菜单时出错[关闭]
  • 使用preg_replace检索该省略的字符串
  • Tail Recursion会在php中进行优化吗?
  • 优化非常长的数据文件的推进数据插入
  • 如何使用列表和数组来实例化类中的字段?
  • 如何通过输入服务器名称来打开应用程序?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华