Passing variables with POST to another page with Jquery

后端 未结 4 1691
[愿得一人]
[愿得一人] 2021-01-11 21:24

I am relatively new to Jquery and I was wondering how would one post variables to another page and then redirect? I used ajax function, the redirect works fine, but no varia

4条回答
  •  庸人自扰
    2021-01-11 22:15

    This answer is just for a quick fix

    why don't you just pass as query string here

    window.location = "LinkTagOut.aspx?variabletopass=test"; 
    
    Trigger the handler
    $('#target').submit(function() { $.post('ajax/test.html', function(data) { }); return false; });

提交回复
热议问题