Hello,
I have a select box that I'm trying to integrate with my site. If a user clicks on a certain image, I want to then populate the select box with the appropriate corresponding value.
I'm familiar with the document.getElementById("somefield").selectedIndex = "somevalue" method, but I'm wondering if there's a way to do it based on the option value.
Thanks you
I have a select box that I'm trying to integrate with my site. If a user clicks on a certain image, I want to then populate the select box with the appropriate corresponding value.
I'm familiar with the document.getElementById("somefield").selectedIndex = "somevalue" method, but I'm wondering if there's a way to do it based on the option value.
Thanks you