Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Buttons to filter results by year › Reply To: Buttons to filter results by year
April 26, 2022 at 7:42 pm
#37653
Participant
Hi, we found that it’s related to the setting “Minimal character count to trigger search”. When it’s less than the minimal character, it won’t do anything after filtering by date. We have the following code to trigger search by enter.
(function($){
$('input.orig').on('keyup', function(e){
if (e.which == 13) {
ASP.api(1, 1, 'searchFor', $(this).val());
}
});
}(WPD.dom));
How do we make datepicker trigger search even when it’s less than the minimal character?