Hello,
thaks for answer.
I know there is a reset option, but this will reset search as well(not only filters).
So there is no possibility to reset everything but search text?
If not is there a function(for custom javascript) that i could call and that will reset only what i want.
Could you please suggest an approach how to handle this?
If I'm not mistaken this will erase search text input on focus.
I'll play around with this and see.
What i need is to trigger it on submit not on focus. I hope it won't be a problem, but i'm afraid that it will trigger multiple reloads of search.
I'll see tomorow. Thank you and please leave this issue opened for now. I'll close it tommorow if I don;t need any more assistance with this.
If I'm not mistaken this will erase search text input on focus.
==> Yes - that is correct.
What i need is to trigger it on submit not on focus. I hope it won't be a problem, but i'm afraid that it will trigger multiple reloads of search.
==> Yes - thats correct as well, on submit is not the recommended way.
Hello,
so I figured out a solution.
This does what i wanned. Triggers more or less on submit and triggers only one ajax call.
There was a little mistake in your code. Due to fact that you replace input and selects tags on ajax(don't know why), listener will be removed so i added listeners on form tag which is not replaced.
I still have one issue. It's a small one. After I errase values, selects are just empty(not default label) and it appears after data are loaded. Is there any way to prevent this?
This is my code(in case anyone needed this functionality :))