I'm trying to make a text field that has a drop down menu, but the user is only able to select options from the drop down menu. I want to disable the user's ability to type in the text box, while still allowing them to select an option, but I don't know how to do that. I've tried disable
and readonly
, but neither do what I want, although it is possible that I am using these attributes wrong.
Edit
I realized two mistakes in my original question. I meant disabled
instead of disable
, and I also meant text input instead of text field.