jmoore2141
Programmer
The following page works correctly on Firefox but returns an empty value in IE. I'm sure I'm not correctly referencing the element and value but don't really know how to proceed. Any help will be appreciated.
Thank you,
Josh
_______________________________________________
<HTML>
<HEAD>
<TITLE>Test</TITLE>
<script language="JavaScript">
function getPage1()
{
custname = document.Form1.customer.value;
alert(custname);
}
</script>
</HEAD>
<body >
<a href="javascript:window.print();")><img border="0" src="printer.gif" alt="Print"></a>
<FORM name="Form1" METHOD="POST" ACTION="sdlc_insert.php"
<center><h3>Project Checklist</h3>
<hr>
</center>
<table>
<tr><td>
<b>Customer Name:</b>
</td><td>
<select size='1' ID="customer_id" name="customer" onchange="getPage1()" >
<option selected></option>
<option>Test1</option>
<option>Test2</option>
<option>Test2</option>
</select>
<tr><td>
</table>
</html>
Thank you,
Josh
_______________________________________________
<HTML>
<HEAD>
<TITLE>Test</TITLE>
<script language="JavaScript">
function getPage1()
{
custname = document.Form1.customer.value;
alert(custname);
}
</script>
</HEAD>
<body >
<a href="javascript:window.print();")><img border="0" src="printer.gif" alt="Print"></a>
<FORM name="Form1" METHOD="POST" ACTION="sdlc_insert.php"
<center><h3>Project Checklist</h3>
<hr>
</center>
<table>
<tr><td>
<b>Customer Name:</b>
</td><td>
<select size='1' ID="customer_id" name="customer" onchange="getPage1()" >
<option selected></option>
<option>Test1</option>
<option>Test2</option>
<option>Test2</option>
</select>
<tr><td>
</table>
</html>