Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何删除保存功能的进度条验证_Jquery_Validation_Progress Bar - Fatal编程技术网

Jquery 如何删除保存功能的进度条验证

Jquery 如何删除保存功能的进度条验证,jquery,validation,progress-bar,Jquery,Validation,Progress Bar,我有两个按钮“提交”和“保存”的进度条 当我点击“保存”按钮时,它正在验证字段,我如何才能自定义该字段,仅针对需要验证的提交功能。但对于“保存”功能,我不需要验证。这是我的代码 $(".next").click(function () { $('#msform').validate(); if (!$('#msform').valid()) { return false;

我有两个按钮“提交”和“保存”的进度条

当我点击“保存”按钮时,它正在验证字段,我如何才能自定义该字段,仅针对需要验证的提交功能。但对于“保存”功能,我不需要验证。这是我的代码

$(".next").click(function () {
            $('#msform').validate();
            if (!$('#msform').valid()) {
                return false;
            }

            
            current_fs = $(this).parent();
            next_fs = $(this).parent().next(); 

            
            //Add Class Active
            $("#progressbar div").eq($("fieldset").index(next_fs)).addClass("active");

            
            //show the next fieldset
            next_fs.show();
            //hide the current fieldset with style
            current_fs.animate({ opacity: 0 }, {
                step: function (now) {
                    // for making fielset appear animation
                    opacity = 1 - now;

                    current_fs.css({
                        'display': 'none',
                        'position': 'relative'
                    });
                    next_fs.css({ 'opacity': opacity });
                },
                duration: 600
            });
        });

        $(".previous").click(function () {

            current_fs = $(this).parent();
            previous_fs = $(this).parent().prev();

            //Remove class active
            $("#progressbar div").eq($("fieldset").index(current_fs)).removeClass("active");

            //show the previous fieldset
            previous_fs.show();

            //hide the current fieldset with style
            current_fs.animate({ opacity: 0 }, {
                step: function (now) {
                    // for making fielset appear animation
                    opacity = 1 - now;

                    current_fs.css({
                        'display': 'none',
                        'position': 'relative'
                    });
                    previous_fs.css({ 'opacity': opacity });
                },
                duration: 600
            });
        });



        //$(".submit").click(function () {
        //    return false;
        //})

如何区分“保存”和“提交”单击以进行验证。请提供任何帮助。

在“保存”按钮中使用formnovalidate=“formnovalidate”

在“保存”按钮中使用formnovalidate属性。