Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/427.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
Javascript Jquery步骤向导与图像上载程序冲突_Javascript_Jquery_Html_Forms - Fatal编程技术网

Javascript Jquery步骤向导与图像上载程序冲突

Javascript Jquery步骤向导与图像上载程序冲突,javascript,jquery,html,forms,Javascript,Jquery,Html,Forms,从这个我有一个与图像上传冲突。在那里,人们可以在创建帐户时上传头像。从现在起,每个输入框都在工作。它正在将信息保存到数据库中 只有上载表单/框不起作用。我在控制台中没有收到错误,但是,如果我从Jquery步骤表单中删除脚本,那么从中的上载就可以工作了 以下是脚本: (function ($) { $(document).ready(function () { var form = $("#djForm"); form.validate({

从这个我有一个与图像上传冲突。在那里,人们可以在创建帐户时上传头像。从现在起,每个输入框都在工作。它正在将信息保存到数据库中

只有上载表单/框不起作用。我在控制台中没有收到错误,但是,如果我从Jquery步骤表单中删除脚本,那么从中的上载就可以工作了

以下是脚本:

(function ($)
{
    $(document).ready(function ()
    {
        var form = $("#djForm");
        form.validate({
            errorPlacement: function errorPlacement(error, element) { element.before(error); },
            rules: {
                confirm: {
                    equalTo: "#password"
                }
            }
        });
        form.children("div").steps({
            headerTag: "h3",
            bodyTag: "section",
            transitionEffect: "slideLeft",
            onStepChanging: function (event, currentIndex, newIndex)
            {
                // Allways allow step back to the previous step even if the current step is not valid!
                if (currentIndex > newIndex)
                {
                    return true;
                }
                form.validate().settings.ignore = ":disabled,:hidden";
                return form.valid();
            },
            onFinishing: function (event, currentIndex)
            {
                form.validate().settings.ignore = ":disabled";
                return form.valid();
            },

            onFinished: function (event, currentIndex)
            {
                alert("Submitted!");
            }
        });
    });

})(jQuery); 
我使用它是因为没有它,它就无法工作

(function ($)
{
    $(document).ready(function ()
    {

    });

})(jQuery);

有人需要帮我做这件事。

你也可以分享你的HTML代码吗?;)该代码基于PHP/HTML,代码超过1000行。这些都在里面,我有必要发布这些吗?