怎么判断呢?服务器里面可以得到它的值
客户端却判断不了

解决方案 »

  1.   

    你看看这个 参考一下http://topic.csdn.net/t/20041119/11/3568244.html
      

  2.   

    你好  我现在想判断的是 FCKEditor这控件JS怎么判断??
      

  3.   

       1. <script type="text/javascript">
       2.  //自定义验证函数
       3.  function checkcontent(source, arguments){
       4.             //获取FCKEditor实例
       5.             var oEditor = FCKeditorAPI.GetInstance('content');
       6.             //判断是否为空
       7.             if (oEditor.GetXHTML(true) ==""){
       8.                 arguments.IsValid = false;
       9.             }else{
      10.                 arguments.IsValid = true;
      11.              }
      12.        }
      13. </script>
      14.  
      15. <!--//自定义验证控件//-->
      16. <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="checkcontent" ValidateEmptyText="true" ControlToValidate="content" ErrorMessage="此项不能为空!"></asp:CustomValidator>
      17.  
      18. <!--//FCKEditor控件//-->
      19. <FCKeditorV2:FCKeditor ID="content" runat="server" Height="300px" Width="680px">
      20. </FCKeditorV2:FCKeditor>
    找了这个 还是判断不了