123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>H+ 后台主题UI框架 - 表单验证 jQuery Validation</title>
- <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
- <meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
- <link rel="shortcut icon" href="favicon.ico"> <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
- <link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
- <link href="../css/animate.min.css" rel="stylesheet">
- <link href="../css/style.min.css?v=4.1.0" rel="stylesheet">
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>jQuery Validate 简介</h5>
- <div class="ibox-tools">
- <a class="collapse-link">
- <i class="fa fa-chevron-up"></i>
- </a>
- <a class="dropdown-toggle" data-toggle="dropdown" href="tabs_panels.html#">
- <i class="fa fa-wrench"></i>
- </a>
- <ul class="dropdown-menu dropdown-user">
- <li><a href="tabs_panels.html#">选项1</a>
- </li>
- <li><a href="tabs_panels.html#">选项2</a>
- </li>
- </ul>
- <a class="close-link">
- <i class="fa fa-times"></i>
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <p>jquery.validate.js 是一款优秀的jQuery表单验证插件。它具有如下特点:</p>
- <ul>
- <li>安装简单</li>
- <li>内置超过20种数据验证方法</li>
- <li>直列错误提示信息</li>
- <li>可扩展的数据验证方法</li>
- <li>使用内置的元数据或插件选项来指定您的验证规则</li>
- <li>优雅的交互设计</li>
- </ul>
- <p>官网:<a href="http://jqueryvalidation.org/" target="_blank">http://jqueryvalidation.org/</a>
- </p>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-6">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>简单示例</h5>
- <div class="ibox-tools">
- <a class="collapse-link">
- <i class="fa fa-chevron-up"></i>
- </a>
- <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
- <i class="fa fa-wrench"></i>
- </a>
- <ul class="dropdown-menu dropdown-user">
- <li><a href="form_basic.html#">选项1</a>
- </li>
- <li><a href="form_basic.html#">选项2</a>
- </li>
- </ul>
- <a class="close-link">
- <i class="fa fa-times"></i>
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <form class="form-horizontal m-t" id="commentForm">
- <div class="form-group">
- <label class="col-sm-3 control-label">姓名:</label>
- <div class="col-sm-8">
- <input id="cname" name="name" minlength="2" type="text" class="form-control" required="" aria-required="true">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">E-mail:</label>
- <div class="col-sm-8">
- <input id="cemail" type="email" class="form-control" name="email" required="" aria-required="true">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">网站:</label>
- <div class="col-sm-8">
- <input id="curl" type="url" class="form-control" name="url">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">说明:</label>
- <div class="col-sm-8">
- <textarea id="ccomment" name="comment" class="form-control" required="" aria-required="true"></textarea>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3">
- <button class="btn btn-primary" type="submit">提交</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <p class="m-t">更多示例请访问官方示例页面:<a href="http://jqueryvalidation.org/files/demo/" target="_blank">查看</a>
- </p>
- <p>中文API可参考:<a href="http://www.w3cschool.cc/jquery/jquery-plugin-validate.html" target="_blank">http://www.w3cschool.cc/jquery/jquery-plugin-validate.html</a>
- </p>
- </div>
- </div>
- </div>
- <div class="col-sm-6">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>完整验证表单</h5>
- <div class="ibox-tools">
- <a class="collapse-link">
- <i class="fa fa-chevron-up"></i>
- </a>
- <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
- <i class="fa fa-wrench"></i>
- </a>
- <ul class="dropdown-menu dropdown-user">
- <li><a href="form_basic.html#">选项1</a>
- </li>
- <li><a href="form_basic.html#">选项2</a>
- </li>
- </ul>
- <a class="close-link">
- <i class="fa fa-times"></i>
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <form class="form-horizontal m-t" id="signupForm">
- <div class="form-group">
- <label class="col-sm-3 control-label">姓氏:</label>
- <div class="col-sm-8">
- <input id="firstname" name="firstname" class="form-control" type="text">
- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">名字:</label>
- <div class="col-sm-8">
- <input id="lastname" name="lastname" class="form-control" type="text" aria-required="true" aria-invalid="false" class="valid">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">用户名:</label>
- <div class="col-sm-8">
- <input id="username" name="username" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">密码:</label>
- <div class="col-sm-8">
- <input id="password" name="password" class="form-control" type="password">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">确认密码:</label>
- <div class="col-sm-8">
- <input id="confirm_password" name="confirm_password" class="form-control" type="password">
- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请再次输入您的密码</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">E-mail:</label>
- <div class="col-sm-8">
- <input id="email" name="email" class="form-control" type="email">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-8 col-sm-offset-3">
- <div class="checkbox">
- <label>
- <input type="checkbox" class="checkbox" id="agree" name="agree"> 我已经认真阅读并同意《H+使用协议》
- </label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-8 col-sm-offset-3">
- <button class="btn btn-primary" type="submit">提交</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="../js/jquery.min.js?v=2.1.4"></script>
- <script src="../js/bootstrap.min.js?v=3.3.6"></script>
- <script src="../js/content.min.js?v=1.0.0"></script>
- <script src="../js/plugins/validate/jquery.validate.min.js"></script>
- <script src="../js/plugins/validate/messages_zh.min.js"></script>
- <script src="../js/demo/form-validate-demo.min.js"></script>
- </body>
- </html>
|