I am dabbiling with NodeJS Express. On a page that is routed to from a home page I have a drop down box as seen here
The onchange event works great and was a solution I found from here
My goal is to have the background color from the CSS set on page load, either through an onload event or with javascript/jQuery.
I tried substituting onload in place of onclick
onload="this.className=this.options[this.selectedIndex].className">
which didn't work.
The option value to use when the page loads is selected from a database so it could be different every time this page is called. This doesn't need to be browser specific as I am only using Chrome