How to create a comparison page with dropdown menu

I need help in creating a comparison between products by a drop down menu and when a customer selects a product from the drop down menu the description of that product will appear with of course another drop down menu beside to show other products to choose and compare…

How to create this comparison page please.
Thanks for your consideration.

Hi Switchplus,

What you can do is to get the value selected from the dropdown, then query the dataset for that value and then assign the result.items[0].description to the text element.

$w("#descriptionText1").text = result.items[0].description;

For more information on how to Query, please check this - https://www.wix.com/code/reference/wix-data.html#query

Hope this helps!
Best,

Mustafa