I have a search embedded in the before content portion of a view. The search works fine; however, is there a simple way to give users a button/link to clear the search criteria and do another search without leaving that view?
Thank you.
My suggestion is to have a clear button next to the search button and use jQuery to clear all the fields you want cleared. A really efficient way to do that is to makeup a class name, e.g., clear_search and apply that to all the fields you want cleared and then in the jQuery code you can clear the value to all the fields with that class.
Please login or Register to submit your answer