Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not returning options value in IE

Status
Not open for further replies.

jmoore2141

Programmer
May 18, 2007
6
US
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>&nbsp;&nbsp;
<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<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>
 
Thanks for the response. IE 6.0.2 is still returning an empty string when I replaced with that line however it still works fine with Firefox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top