Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Multiple custom fields only showing one result › Reply To: Multiple custom fields only showing one result
February 17, 2022 at 5:38 pm
#36804
Participant
Yes that worked! You’re a genius.
Going forward, I’m presuming that the space is the result of autocomplete when they fill out the form.
I think this should solve the issue going forward. Thank you very much, life saver.
$(‘form’).on(‘blur’, ‘input[type=”text”], textarea’, function() {
$(this).val((i, value) => value.trim());
});