• jquery easy ui 学习 (6) basic validatebox


    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Basic ValidateBox - jQuery EasyUI Demo</title>
        <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
        <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
        <link rel="stylesheet" type="text/css" href="../demo.css">
        <script type="text/javascript" src="../../jquery.min.js"></script>
        <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
    </head>
    <body>
        <h2>Basic ValidateBox</h2>
        <p>It's easy to add validate logic to a input box.</p>
        <div style="margin:20px 0;"></div>
        <div class="easyui-panel" title="Register" style="400px;padding:10px 60px 20px 60px">
            <table cellpadding="5">
                <tr>
                    <td>User Name:</td>
                    <td><input class="easyui-validatebox textbox" data-options="required:true,validType:'length[3,10]'"></td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td><input class="easyui-validatebox textbox" data-options="required:true,validType:'email'"></td>
                </tr>
                <tr>
                    <td>Birthday:</td>
                    <td><input class="easyui-datebox textbox"></td>
                </tr>
                <tr>
                    <td>URL:</td>
                    <td><input class="easyui-validatebox textbox" data-options="required:true,validType:'url'"></td>
                </tr>
                <tr>
                    <td>Phone:</td>
                    <td><input class="easyui-validatebox textbox" data-options="required:true"></td>
                </tr>
            </table>
        </div>
        <style scoped="scoped">
            .textbox{
                height:20px;
                margin:0;
                padding:0 2px;
                box-sizing:content-box;
            }
        </style>
    
    </body>
    </html>

  • 相关阅读:
    栈的理解(出、入栈)
    javascript实现可以拖动的层示例(层拖动,兼容IE/FF)
    C# 队列 堆栈
    从0开始做Windows Phone 7开发
    C#写系统日志
    一位软件工程师的6年总结
    向Android模拟器发短信打电话
    office2010激活方法
    常用正则表达式
    JaveScript获得鼠标位置
  • 原文地址:https://www.cnblogs.com/timelesszhuang/p/3685986.html
Copyright © 2020-2023  润新知