Answers for "jqueryhow to refresh element"

19

jQuery refresh page

$('#myElement').click(function() {
    location.reload();
});
Posted by: Guest on July-22-2019
1

refresh a div jquery

$(document).ready(function(){
        $(function(){
        $('#ideal_form').submit(function(e){
                e.preventDefault();
                var form = $(this);
                var post_url = form.attr('action');
                var post_data = form.serialize();
                $('#loader3', form).html('<img src="../../images/ajax-loader.gif" />       Please wait...');
                $.ajax({
                    type: 'POST',
                    url: post_url, 
                    data: post_data,
                    success: function(msg) {
                        $(form).fadeOut(800, function(){
                            form.html(msg).fadeIn().delay(2000);

                        });
                    }
                });
            });
        });
         });
Posted by: Guest on April-04-2020

Code answers related to "jqueryhow to refresh element"

Code answers related to "Javascript"

Browse Popular Code Answers by Language