[英]Javascript submit button URL
I am using Free Bootstrap Wizard.我正在使用免费引导向导。 https://www.bootstrapdash.com/product/free-bootstrap-wizard/#product-demo-section
https://www.bootstrapdash.com/product/free-bootstrap-wizard/#product-demo-section
wizard code http://www.jquery-steps.com向导代码http://www.jquery-steps.com
Trying to redirect the user to register-success.html page after click finish button.单击完成按钮后,尝试将用户重定向到 register-success.html 页面。
Here is my JS:这是我的 JS:
//Wizard Init
$("#wizard").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "none",
stepsOrientation: "vertical",
titleTemplate: '<span class="number">#index#</span>'
});
I manage to redirect to success page.我设法重定向到成功页面。 but not sure if the solution is correct
但不确定解决方案是否正确
$("#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;
}
}); });
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.