# Drop down selection and sorting of images

**URL:** <https://forum.wixstudio.com/t/drop-down-selection-and-sorting-of-images/32281>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [October 11, 2017, 5:48am UTC](https://forum.wixstudio.com/t/drop-down-selection-and-sorting-of-images/32281 "2017-10-11T05:48:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![precise-yoga](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/precise-yoga/32/940_2.png) [@precise-yoga](https://forum.wixstudio.com/u/precise-yoga)\
**Post date:** [October 11, 2017, 5:48am UTC](https://forum.wixstudio.com/t/drop-down-selection-and-sorting-of-images/32281/1 "2017-10-11T05:48:17Z")

</div>

Hi Wixmates!

How do I change the images according to user input? They should be able to pick a size and a cloth and the display only loads accordingly. eg if I select Size “s” from the first dropdown and “Pant” in the second drop down, then the page only loads pants of s size.

Please check this site to get an idea about the question  
[https://preciseyoga.wixsite.com/example](https://preciseyoga.wixsite.com/example)

 ![](https://us1.discourse-cdn.com/wix/original/3X/9/d/9d62b8de0c20fc918f5ea0f14d8a2f1afa90a4fb.jpeg)

---

<div class="post-metadata">

**Author:** ![tomer-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tomer-wix/32/676_2.png) [@tomer-wix](https://forum.wixstudio.com/u/tomer-wix)\
**Post date:** [October 11, 2017, 7:11am UTC](https://forum.wixstudio.com/t/drop-down-selection-and-sorting-of-images/32281/2 "2017-10-11T07:11:42Z")

</div>

Hi,  
You can use the dropdown API to listen for changes, and the image API to show, hide or change the source of the image element:

> **[Dropdown - Velo API Reference - Wix.com](https://www.wix.com/velo/reference/$w/dropdown)**
>
> Dropdowns are used for selecting one of a number of options.

> **[Image - Velo API Reference - Wix.com](https://www.wix.com/velo/reference/$w/image)**
>
> Images are stored in the Media Manager or retrieved from an external web location.

If you’re unfamiliar with using the APIs, you can browse the articles and examples to help you get started, for example:

> **[Velo Tutorial: Adding Custom Interactivity with Events | Help Center | Wix.com](https://support.wix.com/en/article/velo-tutorial-adding-custom-interactivity-with-events)**
>
> Visit the Velo by Wix website to onboard and continue learning.In this tutorial, we’ll show you how to set up an image so that it’s hidden when the page loads,

---

<div class="post-metadata">

**Author:** ![precise-yoga](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/precise-yoga/32/940_2.png) [@precise-yoga](https://forum.wixstudio.com/u/precise-yoga)\
**Post date:** [October 27, 2017, 6:18pm UTC](https://forum.wixstudio.com/t/drop-down-selection-and-sorting-of-images/32281/3 "2017-10-27T18:18:03Z")

</div>

Hi Tomer,

Could you please tell me the step by process to do the same.  
After creating 2 dropdowns and about 10 images on the page, then how do I proceed?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/system/32/86885_2.png) [@system](https://forum.wixstudio.com/u/system)\
**Post date:** [October 30, 2017, 8:21am UTC](https://forum.wixstudio.com/t/drop-down-selection-and-sorting-of-images/32281/4 "2017-10-30T08:21:22Z")

</div>

Hi Yoga 🙂  
Do you have a database containing all of the cloths for sale? with parameters such as ‘type’ and ‘size’?  
How many images should be shown on the page?  
Also, please note that the link you provided is not working ☹  
Liran.
