diff --git a/js/search/search_form_handler.js b/js/search/search_form_handler.js index b5d977f3c..057b94dfe 100644 --- a/js/search/search_form_handler.js +++ b/js/search/search_form_handler.js @@ -722,9 +722,9 @@ $(function() else { // Reusing previously created DOM element - if(this.element.closest('.display_block').next('.sf_results_area').length > 0) + if(this.element.closest('.display_block').parent().find('.sf_results_area').length > 0) { - oResultAreaElem = this.element.closest('.display_block').next('.sf_results_area'); + oResultAreaElem = this.element.closest('.display_block').parent().find('.sf_results_area'); } else {