UPHPUers:

I've got the following:

 print "<td><input type=\"text\" maxlength=\"3\" size=\"3\"
name=\"item_position[]\" onchange=\"check_zero()\"></td>";


The form name is software_form.

Now in my check_zero() function, how do I get the value(s) of the
item_position[] array?

 function check_zero() {
    alert ("am I getting here?");
    var itemValue = document.software_form['item_position[0]'].value;
    alert ("am I getting here?" + itemValue);
 }


or something more like:

var itemValue = document.software_form[item_position[0]].value;

Any help is appreciated.  Surfed the web and didn't find a clear answer.

Thanks

Merrill

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to