By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,611 Members | 870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,611 IT Pros & Developers. It's quick & easy.

Document.Form Issue IE Specific

P: 52
Hi, new here, wonder if anyone can help me out. Here's what I got.

IE doesn't seem to like this, but of course it works fine in Firefox. I trying to fill a textbox based on a selection made from a drop down menu. Any idea's? Am I missing something? It seems very simple, but apparently not.


<script language="javascript">
function fillA()
document.form1.printdept.value = document.form1.department.value;

<form method="post" name="form1">
<input type="text" class="hidetextbox" size="7" name="printdept">
<select class="noprint" name="department" onChange="fillA()">

Feb 9 '07 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 15k+
P: 16,027
Welcome to The Scripts (and thanks for using the code tags!)

Try specifying the value for each option, e.g.
[HTML]<option value="100">100</option>[/HTML]
Feb 9 '07 #2

P: 52
Yeah that was it. It's always the little things.

Thanks again
Feb 9 '07 #3

Expert Mod 15k+
P: 16,027
No problem, you're welcome.
Feb 9 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.