I am trying to use getElementsByClassName to make my select's options jump to their URL's depending on the value:
http://www.example.com/?page_id="value"
Here's what I've done: http://jsfiddle.net/VvLXk/2/
But it's not working.
I know I can use the getElementByID but I have three select elements (and I might add more). I believe it only applies to one element. And for that reason I have resorted to getElementsByClassName which is not working.
What is wrong with my code? Javascript / JQuery solutions are welcome.