I need to display a dropdown with times that the user can select from. Let's say the field currently has "1300" selected. When the user clicks on the select box I want the dropdown to show values like this:
1255
1256
1257
1258
1259
1300 (highlighted)
1301
1302
1303
1304
1305
By default when the user clicks on the dropdown 1300 is highlighted, but if they want to select an earlier time they have to scroll up. I want them to be able to see the selected time and choose an earlier or later time within a few minutes without having to scroll. It's fine if the scrollbar exists in case they need to scroll farther than a few minutes, I just want to prevent them having to scroll up if it was just a few minutes before. Is there any way to do this with plain javascript?