- This topic has 1 reply, 2 voices, and was last updated 10 years, 6 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 › Reset button with multiple search forms sharing same ID
Tagged: reset
On my page I have multiple instances of the same search form. One in the main body and one in the sidebar. I show and hide fields with css so the main body and sidebar have different search fields. However, they have to be connected with each other (thats why they are sharing the same search ID form). Everything is working except the reset button. The reset button only resets the value of the first search form, not all search forms with same ID. Is there a way to accomplish this?
Hey John
This is not possible right now. IDs are only supposed to be used on one element at a time so this is likely part of the problem.
The next version of S&f there is a bit of a JS rewrite, and you’ll be able to call functions on your form to build better custom functionality, something like:
//this is not quite accurate but more of the general concept
$('.searchandfilter').get(2).reset();
Thanks