how to keep dropdown selected after refresh

I tried to keep retain selected item after reloading the page this is my drop-down list after refreshed it looks like this I used this code for the load drop-down list