- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by .
Viewing 2 posts – 1 through 2 (of 2 total)
Viewing 2 posts – 1 through 2 (of 2 total)
Forums › Forums › Search & Filter Pro › Wont fire code afther ajax filter
I want the follow code be executed after the filter is changed.
but i dont get anny responce from the ajax call
$(document).on(“sf:ajaxformfinish”, “.searchandfilter”, function(){
alert(“ajax stop”);
if ( $(‘.sf-field-post-meta-soort option’).val() == “Eengezinswoning” ) {
$(‘.woningoverzicht .appartement’).hide();
}
if ( $(‘.sf-field-post-meta-soort option’).val() == “Appartement” ) {
$(‘.woningoverzicht .eengezinswoning’).hide();
}
});
Also tryed it with ajaComplete, ajaxformfinish, ajaxfinish
but my alert wont even trigger.