Jump to content

Accessing array values


hostfreak

Recommended Posts

Say I have two inputs in a form that creates an array with the square-bracket syntax, example:

 

<input name="Quantity[inventory]" type="text" />
<input name="Quantity[Commercial]" type="text" />

 

How would I access those values in javascript? I've tried getElementById() to no avail. Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/67763-accessing-array-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.