I am new with Magento 2 and web development. I don't understand how to create dropdown button. I saw some style in below website and I am not sure how to use it.
http://www.bergo.nl/pub/static/frontend/Magento/blank/en_US/css/docs/dropdowns.html
I have button.phtml file in templates/product/view
And put the below code but It is not working.
<div class="example-dropdown-2">
<button class="action toggle"
data-mage-init='{"dropdown":{}}'
data-toggle="dropdown"
aria-haspopup="true">
<span>button + dropdown</span>
</button>
<ul class="dropdown">
<li>
<span class="item">One</span>
</li>
<li>
<span class="item">Two</span>
</li>
<li>
<span class="item">Three</span>
</li>
</ul>
Does anyone know how to add dropdown and what would be the best practice to implement?
Thank you.