How to reset specific form element in a search form?
<p>I have a search form that has different elements in it, checkboxes, selects, text fields etc. Each change is accompanied by an ajax call that gets the number of results as a sort of counter. I would like to reset only the previous element that caused the counter to return a value of 0.</p>

<p>I was thinking about keeping track of each change in a variable, and each time the counter evaluates to 0, I would then reset the element that caused the change. I however fear that this could force me to handle all the different elements differently with a lot of code and jumping around.</p>

<p>Is there a possible more elegant solution to the problem that anybody can think of? I would appreciate the help.</p>
