How does the failure to validate with jquery validation stay in the modal box?

function validform() {
    return $("-sharpreset_passwd").validate({
     rules: {
     password: {
            required: true,
            minlength: 6
          },
     confirm_password: {
            required: true,
            minlength: 6,
            equalTo: "-sharppassword"
          }
       },              
    });
}
$(validform());
$("-sharpssss").click(function() {    
    if (validform().form()) {
        $.ajax({
            type : "POST",
            url : "users",
            data : $("-sharpreset_passwd").serialize(),
            success : function(msg) {
                alert(1)
            },
            error : function(mes) {
                alert(2)
            }
        });
    } else {
    }
});
Jan.30,2022

does not seem to be used in this way; Sir, it becomes a rule, and then validates


problem is solved, and the validated form is bound to the confirm button

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e5c0-2c3fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e5c0-2c3fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?