On 12 Jul 2010, at 17:25, Merrill Oveson wrote: > 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?
With jQuery, I'd do it like this: http://anavidesign.com/temp/jquery.html With raw javascript, like this: http://anavidesign.com/temp/raw.html There are several methods for accessing forms in the DOM. Which you use depends on how your page is marked up and which browsers you need to support. Here's some notes: http://www.openjs.com/tutorials/advanced_tutorial/forms.php _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
