I have written a function(last code snippet) that hides the input search if the user clicks anywhere outside of the input search.
What I\'m trying to do now is when i