Need help with this concept. User selects an option from a select box, then clicks the form button. Need to append the value of whichever option the user selects to the end of the action url.
I'm getting the following error: Object doesn't support this property or method
Any ideas? The code follows
I'm getting the following error: Object doesn't support this property or method
Any ideas? The code follows
Code:
<script>
function doMat(idval)
{
document.frmMat.action="index.cfm?viewState=prodShow&matid="+idval
document.frmMat.sumbit();
}
</script>
<form name="frmMat" method="post">
<td>
<select name="materials" class="onwhite">
<option class="onwhite">Select One...</option>
<option class="onwhite" value="all">All Materials</option>
<cfoutput query="get_materials">
<option class="onwhite" value="#material_id#">#material_name#</option>
</cfoutput>
</select><input type="button" name="goMat" value="go" onclick="doMat('document.frmMat.materials.value');" class="gobtn">
</td>
</form>