Javascript 使用带有多步骤表单的POST时出现的问题

Javascript 使用带有多步骤表单的POST时出现的问题,javascript,jquery,html,forms,post,Javascript,Jquery,Html,Forms,Post,我有一个3阶段的表单,用户在其中输入数据,我想使用POST命令,以便数据可以在另一个页面上使用。当使用一个单一的形式后工程罚款如下 <form action="otherpage.php" method="post"> Question: <input type="text" name="something" /><br /> <input type="submit" name="submit" value="Submit me!" /> <

我有一个3阶段的表单,用户在其中输入数据,我想使用POST命令,以便数据可以在另一个页面上使用。当使用一个单一的形式后工程罚款如下

<form action="otherpage.php" method="post">
Question:  <input type="text" name="something" /><br />
<input type="submit" name="submit" value="Submit me!" />
</form>
编辑2:


也许,因为我现在使用的javascript和以前不同,这意味着我不能像以前一样使用POST?我一直在搜索其他人的问题和互联网,但确实找不到解决此问题的下一步。

好的,我实际解决了它,我需要删除代码:

class="submit action-button"
从我的submit按钮,因为这阻止了我使用'POST'命令,而是调用jquery文件,该文件内部有一个返回:true


我想我只是个白痴

另外,如果有其他人遇到这种情况,请确保在JADE中将表单设置为表单元素,而不是DIV.FORM#msform(action='/home',method='get')
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches

$(".next").click(function(){
    if(animating) return false;
    animating = true;

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

    //activate next step on progressbar using the index of next_fs
    $("#progressbar li").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, mx) {
            //as the opacity of current_fs reduces to 0 - stored in "now"
            //1. scale current_fs down to 80%
            scale = 1 - (1 - now) * 0.2;
            //2. bring next_fs from the right(50%)
            left = (now * 50)+"%";
            //3. increase opacity of next_fs to 1 as it moves in
            opacity = 1 - now;
            current_fs.css({'transform': 'scale('+scale+')'});
            next_fs.css({'left': left, 'opacity': opacity});
        }, 
        duration: 800, 
        complete: function(){
            current_fs.hide();
            animating = false;
        }, 
        //this comes from the custom easing plugin
        easing: 'easeInOutBack'
    });
});

$(".previous").click(function(){
    if(animating) return false;
    animating = true;

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

    //de-activate current step on progressbar
    $("#progressbar li").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, mx) {
            //as the opacity of current_fs reduces to 0 - stored in "now"
            //1. scale previous_fs from 80% to 100%
            scale = 0.8 + (1 - now) * 0.2;
            //2. take current_fs to the right(50%) - from 0%
            left = ((1-now) * 50)+"%";
            //3. increase opacity of previous_fs to 1 as it moves in
            opacity = 1 - now;
            current_fs.css({'left': left});
            previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity});
        }, 
        duration: 800, 
        complete: function(){
            current_fs.hide();
            animating = false;
        }, 
        //this comes from the custom easing plugin
        easing: 'easeInOutBack'
    });
});

$(".submit").click(function(){
    return true;
})
class="submit action-button"