Hello all!
here is my code:
<script>
function showMe(group){
alert(bin51.bin51.value) 'this line returns selected option just fine
'this is the line I need help with
alert(document.getElementsById(group).value)
'I would like it to convert the group variable into
'bin51 and make it return the selected option as the line above
}
</script>
<body>
<form name = "bin51">
<select name = "bin51">
<option value="bin5102">Bin5102 - 500pc - $1000</option>
<option value="bin5103">Bin5103 - 250pc - $650</option>
</select>
<button onclick="showMe('bin51')">Add to Cart</button>
</form>
</body>
Please keep in mind this is not the complete code. Some of the elements in
this script are generated by ASP and represent one of many forms on the
products page.
TIA for any suggestions.
~Michael
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com