Below is code I'm working on in InterDev. When I click the submit button I get the following error message: Object doesn't support this property or method: 'document.frmByCust.radDate.value'
What can I do to fix this?
<HEAD>
<title>Customer Report</title>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT LANGUAGE="VBScript">
<!-- Option Explicit
function frmByCust_onsubmit()
msgbox "radDateIndx: " & document.frmByCust.radDate.value
end function
-->
</SCRIPT>
</HEAD>
<BODY text=Black language = vbscript bgproperties="fixed">
<form action="ByCust2.asp" method="post" id="frmByCust" name="frmByCust" language=vbscript>
<input type="radio" name="radDate" value="RecDate" tabindex=1 checked>Record Date
<input type="radio" name="radDate" value="LoadDate" tabindex=2>Revenue Date
<br>
<input type="submit" value="Submit" id="submitInfo" tabindex=3 name=submitInfo>
<input type="reset" value="Reset" id="ResetInfo" tabindex=4>
</form>
</BODY>
</HTML>
What can I do to fix this?
<HEAD>
<title>Customer Report</title>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT LANGUAGE="VBScript">
<!-- Option Explicit
function frmByCust_onsubmit()
msgbox "radDateIndx: " & document.frmByCust.radDate.value
end function
-->
</SCRIPT>
</HEAD>
<BODY text=Black language = vbscript bgproperties="fixed">
<form action="ByCust2.asp" method="post" id="frmByCust" name="frmByCust" language=vbscript>
<input type="radio" name="radDate" value="RecDate" tabindex=1 checked>Record Date
<input type="radio" name="radDate" value="LoadDate" tabindex=2>Revenue Date
<br>
<input type="submit" value="Submit" id="submitInfo" tabindex=3 name=submitInfo>
<input type="reset" value="Reset" id="ResetInfo" tabindex=4>
</form>
</BODY>
</HTML>