Skip to content

Reload on ajax #25

@memegauste

Description

@memegauste

How to reload this plugin after ajax request?

$('#id_input').keyup(function(e){
        let url = index_url;
        $.ajax({
            type: "POST",
            url: url,
            data: {
                'input': $('#id_input').val(),
                'offer_type': $('#id_offer_type').val(),
                'category': $('#id_category').val()
            },
            success: function (data) {
                $('#offer-objects').html(data);
            },
            complete: function(){
                SwiperReload();
            },
        });
    });

Something like that. If recaptcha is inside div with ID offer objects (#offerobjects) it does not load after ajax request finished (inside success function).

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions