Uncaught ReferenceError: selectBox is not defined

Good day guys. In my view.list.php, I extended the query using this function

.

But when I use the clear filter (the button beside filter button), it returns me an error.

Uncaught ReferenceError: selectBox is not defined.

I am using v7.10 .

Im sorry, this is the function

to those who haven’t figured this out and don’t have time/choices left (like me). I did a little trick which is not recommended. Use jQuery.

  1. Remove the ONCLICK attribute of clear filter button.
$(".clearSearchIcon").removeAttr('onclick')
  1. Trigger the CLEAR button in SEARCH/FILTER FORM.
$("#search_form_clear_advanced").click()

3.Then trigger the SEARCH button in SEARCH/FILTER FORM

 $("#search_form_submit_advanced").click() 

Again. This is recommended ONLY IF you have no more time/choices left. Good luck.