- This topic has 1 reply, 2 voices, and was last updated 8 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
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 › Hide Ajax results until submit is clicked
Has anyone accomplished this? I tried with the following, but I dont think the results will load in a hidden div…
<script>
jQuery(document).ready(function(){
jQuery(‘.search-filter-results’).click( function(e) {
e.preventDefault(); // stops link from making page jump to the top
e.stopPropagation(); // when you click the button, it stops the page from seeing it as clicking the body too
jQuery(‘.search-filter-results’).show();
});
jQuery(‘.search-filter-results’).click( function(e) {
e.stopPropagation(); // when you click within the content area, it stops the page from seeing it as clicking the body too
});
jQuery(‘body’).click( function() {
jQuery(‘.search-filter-results’).hide();
});
});
</script>
You can see i’ve gotten it to work the other way (submit button hides results) – http://thriveworks.alphaintelknows.com/franchise-job-search/
Do you want to hide results so nothing shows until someone makes an actual search? If so, this post will help:
https://support.searchandfilter.com/forums/topic/force-selection/#post-87657