Bear with me, I’m still trying to get a grasp on Javascript.
I’m trying to set up a series of dropdown box selections and output the results on the same page.
<head>
<SCRIPT type=”text/javascript”>
function definefunction()
{
document.write(“” +variable01+ ” text here “);
}
</SCRIPT>
</head>
<body>
<FORM>
<SELECT NAME=”variable01″ SIZE=”1″><OPTION SELECTED>first option <OPTION>second option</SELECT>
<INPUT TYPE=”button” value=”Calculate” onClick=”definefunction()”>
</FORM>
</body>
</html>
I know my form works, this is a simplified version.
When the “Calculate” button is pressed, the error says ” variable01 not defined “. Well, it was defined in the dropdown menu.
I’ve looked several places to see if I could find a similar Javascript, and I can’t seem to find it in HTML goodies, can someone please help?