- This topic has 2 replies, 2 voices, and was last updated 5 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › Auto submit for custom SELECT styling
Tagged: Auto Submit
Hi,
I’m using a custom styling for the select elements (hiding the actual select and generating a custom layout which changes the selected value of the original select form field).
How can I initialize the form correctly to then submit it. Only running “submit()” on the form doesn’t work.
Best,
Marc
I would normally recommend using Select2 to do that sort of thing (as it is the most commonly used script for WordPress). I can refer you to a post on how to do that. Our form supports Select2 natively (the easiest way is to make a dropdown box a combobox, but there is an alternate method to do it without setting them as comboboxes).
To submit the form you would use:
$('.searchandfilter').submit()