Forums Forums Search & Filter Pro Best way to add custom functions/events to trigger on filter change

Viewing 2 posts - 1 through 2 (of 2 total)
  • Trevor
    #56861

    When the input is clicked, does that trigger our Ajax? If it does, you need to re-write your code as a named function and then call that function form the document.ready, and also use this javascript:

    $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    	console.log("ajax complete");
    	//so load your lightbox or JS scripts here again
    });

    Does that make sense?

    Anonymous
    #56874

    Hi Trevor,

    That worked perfectly! Thank you for the quick response!

    All the best,
    Travis

Viewing 2 posts - 1 through 2 (of 2 total)