- This topic has 3 replies, 2 voices, and was last updated 9 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › Using iCheck? Help needed
Hello, now I’ve figured out how to “trigger” the search filter submission when using iCheck, and it works.
Now I am encountering another issue: when the results are loaded iCheck doesn’t work anymore,and form has its default styling.
Here is my code:
jQuery(document).ready(function() {
jQuery('input').iCheck({
checkboxClass: 'purplebox_minimal',
radioClass: 'purpleradio_minimal',
increaseArea: '20%'
});
jQuery('.sf-input-checkbox').on('ifToggled', function(event){
jQuery("#search-filter-form-696").submit();
});
jQuery(".sf-input-checkbox").trigger("iCheck");
});
That sounds like you need to re-trigger it. I am not sure, but you might find some help in the first FAQ:
https://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/