小编Pha*_*mar的帖子

jQuery linkbutton错误

这个jquery函数适用于按钮提交但不适用于链接按钮.为什么?

<html>
<head>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#form1").validate({
                rules: {
                    <%= txtUserName.UniqueID %>: {minlength: 5, required: true},
                    <%= txtPassword.UniqueID %>: {minlength: 5, required: true},
                    <%= txtEmail.UniqueID %>: {required: true},
                    <%= txtURL.UniqueID %>: {required: true},
                    <%=  chkbox.UniqueID%>: {required:true},
                    <%= textcredit.UniqueID %>:{required:true},
                 }, 
                messages: {
                    <%= txtUserName.UniqueID %>: {
                        required: "Plaese enter your name",
                        minlength: "User name must be atleaet of 5 characters"
                    },
                    <%= txtPassword.UniqueID %>: { 
                        required: "Plaese enter your password", 
                        minlength: "Password must be atleaet of 5 characters"
                    }, …
Run Code Online (Sandbox Code Playgroud)

asp.net jquery linkbutton jquery-validate

1
推荐指数
1
解决办法
651
查看次数

标签 统计

asp.net ×1

jquery ×1

jquery-validate ×1

linkbutton ×1