<script type="text/javascript">

(function($){
    $(function(){
        $("#frmmsg").submit(function(e){
            e.preventDefault();

            $.post( 'templatemsg.php', $("#frmmsg").serialize(), function(){ 
                document.location.reload();

            });
        });
    });     

})(jQuery);



</script>

plz help soon

Hai;

use window.location.reload();

You can try..

window.location.href = window.location.href

If you use window.location.reload(), this will reload the current page including POST data so that may be something you need to consider.

If you can be a bit more descriptive in your posts, you are more likely to get better guidance in the answers you receive.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.