# How can I reset the Swiftype search autocomplete dropdown when a user clicks away?

**URL:** <https://community.swiftype.com/t/how-can-i-reset-the-swiftype-search-autocomplete-dropdown-when-a-user-clicks-away/77>\
**Category:** Setup & Indexing\
**Created:** [December 21, 2015, 11:00pm UTC](https://community.swiftype.com/t/how-can-i-reset-the-swiftype-search-autocomplete-dropdown-when-a-user-clicks-away/77 "2015-12-21T23:00:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/swiftype/original/1X/fd652d1735c60057fa71c371375511028f9a1832.png) [@system](https://community.swiftype.com/u/system)\
**Post date:** [December 21, 2015, 11:00pm UTC](https://community.swiftype.com/t/how-can-i-reset-the-swiftype-search-autocomplete-dropdown-when-a-user-clicks-away/77/1 "2015-12-21T23:00:21Z")

</div>

> **When a user clicks away from the site search box on my page I want the search suggestions in the autocomplete dropdown to clear out. Can I do this with Swiftype’s JavaScript autocomplete widget?**

You can definitely have the search suggestion dropdown empty out once a user clicks elsewhere on the page. Here is an example of how to do so with jQuery:

```auto
$('.swiftype-widget .autocomplete ul').empty()

```
