Relative Content

Tag Archive for drop-down-menuform-submitselecteditemvisibleselectedvalue

keep selected option visible in dropdown after submitting

I am using the following script to retrieve data from my mysql db and to fill a dropdown. Retrieving, selecting and submitting are working perfectly. The only thing is that the selected option falls back to the initial option value of the values retrieved. I want the selected value to remain visible until the user changes the selection. I checked several scripts in Stack but could not reach at a solution. Obviously I am missing something in the script but ‘what’? Is there anyone that can help me out?