Refresh page after onclick in

后端 未结 3 422
长发绾君心
长发绾君心 2020-12-20 01:07

I have the following code:

\');\" name=\"remove[]\"          


        
3条回答
  •  借酒劲吻你
    2020-12-20 01:16

    you can resubmit the page to itself by triggering the submit of an input field for instance. Assuming that your hyperlink got the id nextLink and you got an input with id submitMe you can do :

    
     $("#nextLink").click(function () {
    //setting the url of the action target (your page or controller) $('#submitMe').attr('action', '/MySection/MyPage.php'); $("#submitMe").submit(); });

提交回复
热议问题