Show dropdown on Button Click

Show dropdown on Button Click

I am trying to show a dropdown list on Button click. Example is here


but with my requirement I want the Button "Testing" to hide and the dropdown show in it place so users can select from it. Any help will be appreciated.