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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Values

Status
Not open for further replies.

lomano

Programmer
Nov 15, 2000
18
CA
I have some code that passes a value from a select box into a textbox.

It seems to work in IE but not in netscape.

<script language=&quot;javascript&quot;>
function value_exchange(form) {
form.rate2.value = form.quickrate.options[form.quickrate.selectedIndex].value;
}
</script>

i tried using document.form.selectedIndex etc. but that didn't seem to work either.

any suggestions Thanks...
 
hi
must be workin.. plz show us the rest of ur code (minimal complete document: ur form with select box & text field & script & how u call that script) regards, vic
 
Thanks for all your help.

I was using an onclick event to call the function. Once i changed this to an onchange event everything seemed to work.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top