My page is dynamically generating a product listing for a drop down list based on our options. For example, one page might show this:
[HTML] <select name=stylekey>
<option value="7784">Naos 70 Regular Cobalt</option>
<option value="7783">Naos 70 Regular Graphite</option>
[/HTML]
The name is always "stylekey". Basically I don't have access to this code, so I can't really modify the select list by adding events. What I want is for a user to go to a given page when they select an item from the drop down list without having to push a button.
I added in this javascript:
[HTML] <script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpToProduct(value) {
window.location="address to site" + value;
}
//-->
</script>
[/HTML]
Where address to site was the physical path. This code works perfectly if I add this to the <select button (just on a test page):
Expand|Select|Wrap|Line Numbers
- onChange="MM_jumpToProduct(test.value)"
Sorry for the beginner question, and thanks for any help!