79807104

Date: 2025-11-02 11:53:52
Score: 2
Natty:
Report link

Why not:

var select = document.getElementById(select_id);
select.scrollTop = select[select.selectedIndex].offsetTop;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (1):
Posted by: gustl