Hi there! I'm trying to have the dropdown menu display the previous selection for my interview application I am working on. In the app, you are able to edit questions that have a few categories (categories, difficulty, etc) and I want the drop down's menu to have whatever the value was before being in the placeholder spot. So, for instance, if a question was marked as Medium and I wanted to change it too Hard, then the drop down in the new interface would have Medium in the place holder. Please let me know what to include I am super lost!
Discussion posts and replies are publicly visible
I think you want to display the selected value when the user wants to edit again to do that you have to query the data from the database and use that to show the values previously selected in the dropdown.