我正在使用jQuery来验证表单..但是当我使用CKeditor并尝试使用jQuery来验证它时,它不起作用。
这是HTML代码段
  <form class="form-horizontal" role="form" name="f3" id="f3" >
   <div class="col-xs-8">
       <textarea class="ckeditor" name="cktext" id="cktext"></textarea>
   </div>
    <button type="submit" class="btn btn-default btn-success">Submit</button>
  </form>
这是表单验证代码
    <script>
           $(document).ready(function(){
           $("#f3").validate(
            {
              debug: false,
                rules: { 
                    cktext: {                         
                     required: true,
                     minlength: 10
                    }
                 }
            });
        });
      </script>
仅供参考:适用于其他表单字段的jQuery验证需要ckeditor textarea字段
任何建议..摆脱这个问题..
您需要在表单中放置一个提交按钮:
<input type="submit"/>该表单仅在提交时验证。
在此提琴上检查示例:http : //jsfiddle.net/5RrGa/800/