Menu
Hi all,
I have an array named numbers declared as global and set in a function. I would like to use that array in a javascript to put a number into an <input…
field.
I can’t figure out how to reference that array in the javascript. Is there a way?
<script language=”javascript” type=”text/javascript”>
function shownumber(sel)
{
alert(“in shownumber, sel=”+sel);
alert(document.My_form.$numbers[sel].value);
document.My_form.numbers.value=document.My_form.$numbers[sel].value;
}
</script>
Error Console:
Error: document.My_form.$numbers has no properties
TIA,
DD