Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.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提交按钮URL_Javascript_Jquery_Jquery Steps - Fatal编程技术网

Javascript提交按钮URL

Javascript提交按钮URL,javascript,jquery,jquery-steps,Javascript,Jquery,Jquery Steps,我正在使用免费的引导向导 向导代码 单击“完成”按钮后,尝试将用户重定向到register-success.html页面 这是我的JS: //Wizard Init $("#wizard").steps({ headerTag: "h3", bodyTag: "section", transitionEffect: "none", stepsOrientation: "vertical", titleTemplate: '<span class="

我正在使用免费的引导向导

向导代码


单击“完成”按钮后,尝试将用户重定向到register-success.html页面

这是我的JS:

//Wizard Init

$("#wizard").steps({
    headerTag: "h3",
    bodyTag: "section",
    transitionEffect: "none",
    stepsOrientation: "vertical",
    titleTemplate: '<span class="number">#index#</span>'

});
//向导初始化
$(“#向导”)。步骤({
头像:“h3”,
bodyTag:“节”,
transitionEffect:“无”,
阶梯定向:“垂直”,
标题模板:“#索引#”
});

我设法重定向到成功页面。但不确定解决方案是否正确

$("#wizard").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "none",
stepsOrientation: "vertical",
titleTemplate: '<span class="number">#index#</span>',
labels: {
    finish: "Create My Accout",
},
onFinished: function redirect() {
    window.location.replace("register-success.html");
    return false;
}
$(“#向导”)。步骤({
头像:“h3”,
bodyTag:“节”,
transitionEffect:“无”,
阶梯定向:“垂直”,
titleTemplate:“#索引#”,
标签:{
完成:“创建我的帐户”,
},
onFinished:函数重定向(){
window.location.replace(“register success.html”);
返回false;
}

}))

请准确地解释您正在实现的目标,并尝试包含您的html代码,以便我们可以将其与您的javascript相匹配。谢谢。单击“完成”按钮后,尝试将用户重定向到register-success.html页面。