Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How do you move the currently selected item of a dropdown to the top of the list?
Post Body

I have an app where users can select from a list of genes. Typical behavior is switching back and forth between two different genes. How would I rearrange the dropdown options after each time an option is selected so that the most recent options are at the top?

This question is related to this stackoverflow post with toy code: https://stackoverflow.com/questions/73494321/dynamically-reorder-options-in-selectizeinput-so-that-most-recently-choise-is-at

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
146,231
Link Karma
39,101
Comment Karma
105,840
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago