Ask a question about name = & quot; num [] & quot ;! -- Information loop -- & gt; & lt; tablewidth = & quot; 100% & quot; border = & quot; 0 & quot; cellpadding = & quot; 0 & q: ask a question about name = "num []".
| Family bookshelves · Quality Life Yoga Book |
$19.9 |
|
| Family bookshelves · quality life and longevity Health Care Book |
$19.9 |
|
.......
.......
Table is read in a program loop. I want to use ajax to modify the num [] (quantity) value. how can I capture the num! Solution
------ Solution --------------------
So what you are talking about is the number of JAVAScript personas. if so, you can give different IDs for each Input, and then use JAVAScript to control it.
------ Solution --------------------
Document. getElementsByName ("num []"). length
Document. getElementsByName ("num []") [0]. value
Document. getElementsByName ("num []") [1]. value
...