当前位置: 首页>Bootstrap>bootcss验证插件sco.valid.js如何提交

bootcss验证插件sco.valid.js如何提交

时间:2015-06-30 00:24 来源:网络整理 作者:KKWL 点击:
formaction="1.aspx"id="valid_form"class="form-horizontal" labeldivEmail/divinputtype="email"name="email"/label labeldivPassword/divinputtype="password"name="pass"/label labeldivPasswordagain/divinputtype="password"name="pass2"/label buttont


<form action="1.aspx" id="valid_form" class="form-horizontal">
    <label><div>Email</div> <input type="email" name="email"></label>
    <label><div>Password</div> <input type="password" name="pass"></label>
    <label><div>Password again</div> <input type="password" name="pass2"></label>
    <button type="submit" class="btn">Try</button>
    </form>


    <script>
    $(function() {
    $('#valid_form').scojs_valid({rules: {email: ['not_empty', 'email'], pass: ['not_empty', {'min_length': 4}], pass2: [{matches: 'pass'}]}});
    });
    </script>


如上,所有项都填对了之后,如何提交到1.aspx页面?

分享到:

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------