For more information about name = "num []",

Source: Internet
Author: User
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
...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.