[UPHPU] simple array question javascript question
Wade Preston Shearer
wadeshearer.lists at me.com
Mon Jul 12 18:43:21 MDT 2010
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
More information about the UPHPU
mailing list