How to create a dropdown button in text field

I need to create a drop down button in the text box field. How to do that plz suggest me. Thanks in advance

  Discussion posts and replies are publicly visible