Change URL and redirect using jQuery

前端 未结 6 1450
眼角桃花
眼角桃花 2020-11-27 09:37

I have some code like this,

and now I want to redirect lik

6条回答
  •  [愿得一人]
    2020-11-27 10:27

    Try this...

    $("#abc").attr("action", "/yourapp/" + temp).submit();
    

    What it means:

    Find a form with id "abc", change it's attribute named "action" and then submit it...

    This works for me... !!!

提交回复
热议问题