I've been searching methods to toggle a list that gets displayed when an user searches something in my app. What I want to do is have my search results hide whenever the search bar is closed. What would be the best way to do this? I believe I should do this with angular somehow but I'm out of ideas on how to do it. I tried the following jquery without success:

```
$("input").click(function(){
    $("ul").toggle();
});

```

My codepen for this is: <http://codepen.io/Feners4/pen/ZGZORX>