- This topic has 13 replies, 3 voices, and was last updated 8 years, 11 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Ajax loading pages breaks filter
Hey Graeme
To initialise S&F dynamically, you could do:
$('.searchandfilter').searchAndFilter();
To remove S&F (which you may need to do if elements get reloaded, pehaps before the page is changed), your best bet is to use:
$('.searchandfilter').off();
Just be sure that the JavaScript you load, has a dependency for our S&F script ('search-filter-plugin-build'), or at least load it very late in your page, so that its called in the correct order.
Let me know how you get on.
Best