开发者

how to refresh my index page after form submission?

开发者 https://www.devze.com 2023-03-25 12:27 出处:网络
I am having a dynamic content in my jsp pages that has to be refreshed once my form is submitted.Form submission is not done via ajax.I have tried with data-cache=never,rel=开发者_如何学JAVAexternal.

I am having a dynamic content in my jsp pages that has to be refreshed once my form is submitted.Form submission is not done via ajax.I have tried with data-cache=never,rel=开发者_如何学JAVAexternal. They ddnt work for me.


Use

location.reload(true);

in javascript.


$('#my_form').submit(function(){
    // After everything else...
    window.location.reload();
});
0

精彩评论

暂无评论...
验证码 换一张
取 消