Table of Content

  1. Overview
  2. Elements
  3. Code
  4. YouTube Tutorial


Been able to clear a filter element after a filter gives the user the ease to begin a fresh set of filtering input. Our previous tutorial which began with using the wix selection tags to filter a repeater made up of shoes for men, women, and children. It is relevant to be able to reset the selection tag to default after a filter input has been done by the user.

The selection tags, which happens to be a new wix input element, can be used for variety of purpose. Connecting them carefully with JavaScript, will provide a unique functionality to your website. Other wix elements can be used for this purpose, such as dropdowns, buttons and even texts. The idea is dependent on your JavaScript knowledge and skills.

WIX has provide APIs and Documentations for every element on the wix editor. You can find and follow the examples in the links below;

Working Example


The following are the elements needed for this tutorial:

  • Selection tags (ID: tags)
  • Repeater
  • Button (ID: clear)
Replace IDs with your elements’ ID


$w.onReady(() => {
    $w('#dataset1').onReady(() => {
        $w('#clear').onClick(() => {
            $w("#tags").value = undefined;

Leave a Reply

Your email address will not be published. Required fields are marked *



Your message was sent successful. Thanks.


Let's Talk

Don't wait any longer, let us know about your project and provide you affordable rates.

We need some more important information to better understand how we can help you in the best possible way.

Tell us more about what you want your project to be. We appreciate details to help us assist you better.

  • Personal Details
  • Budget
  • Support