zoukankan      html  css  js  c++  java
  • easyUI之表单

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>增加人员</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
          <link rel="stylesheet" href="../themes/default/easyui.css" type="text/css"></link>
        <link rel="stylesheet" href="../themes/icon.css" type="text/css"></link>
        <script type="text/javascript" src="../js/jquery.min.js"></script>
        <script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
        <script type="text/javascript" src="../js/easyui-lang-zh_CN.js"></script>
      </head>
      <body>
        
        
        <form>
            <table border="2" align="center">
                <tr>
                    <th>姓名:</th>
                    <td><input id="nameID" type="text"/></td>
                </tr>
                <tr>
                    <th>入职时间:</th>
                    <td><input id="dateID" type="text"/></td>
                </tr>
            </table>
        </form>
        
        
        <script type="text/javascript">
            $("#nameID").validatebox({
                required : true,
                validType : ['length[1,6]','zhongwen']
            });
        </script>
        <script type="text/javascript">
            $.extend($.fn.validatebox.defaults.rules, {    
                zhongwen: {  
                    validator: function(value){   
                        if(/^[u3220-uFA29]*$/.test(value)){
                            return true;    
                        }
                    }, 
                    message: '姓名必须为中文'   
                }    
            });  
        </script>
        <script type="text/javascript">
            $("#dateID").datebox({
                required : true
            });
        </script>
        
        
      </body>
    </html>
  • 相关阅读:
    弹出层layer的使用
    SQL Server SQL分页查询
    C#过滤html标签
    SQLServer ForXmlPath应用
    js调用soapWebService服务
    MediaWiki使用指南
    阿里云金融云服务器配置
    VS无法启动 IISExpress web 服务器
    mysql服务突然丢失解决方案
    [k8s]通过openssl生成证书
  • 原文地址:https://www.cnblogs.com/loaderman/p/10062617.html
Copyright © 2011-2022 走看看