Javascript – Change option background color on hover


How can I change the background color when user hovers it ? I have tried this but it's not working.



Best Solution

You cannot use option in this way. The best solution would be styling something similar with <ul> and <li> and interacting with JS.