you'll need to do 3 things
1) intercept the search button click event and execute a jquery function
2) figure out a way to address the modules you want to hide
3) use jquery to hide them
So, here's some code that might help you...
1) say for example, you have a button with an ID of "btnSearch", you can hook into the click event using jquery like this...
$("#btnSearch").click(function () {
});
2) There are many ways to select items in jquery. Among those, you can select things to hide by 'class', 'div' ,or 'ID'. You'll need someway to identify which items you want to select. The easiest way would be by container. I would suggest creating a specialized container where the overall wrapping container has a class attribute, for example, class="hideme", then use that container for all of the modules that you want to be able to hide.
3) Now, in your jquery function, you can quickly hide all items that have a class attribute of "hideme"...
$("#btnSearch").click(function () {
(".hideme").hide();
});
Now, with those few lines of code, when the btnSearch button is clicked, all of the items on your page with a class of "hideme" will be hidden.