关于 name="num[]" 的提问,请高手解下,该怎么解决

WBOY
Release: 2016-06-13 13:49:48
Original
751 people have browsed it

关于 name="num[]" 的提问,请高手解下


 
  
 
 
 
 
 
家庭书架·品质生活 瑜伽全书 19.9元




 
  
 
 
 
 
 
家庭书架·品质生活 长寿保健全书 19.9元



  .......

  .......
table 是用程序循环读出来的 我想用ajax 来修改 num[](数量) 的值 可我怎么能 捕捉是那个 num[] 呀! 求解



------解决方案--------------------
那你说的应该是用JAVAScript个性数量,如果是那样,你可以给每个Input不同的ID,然后用JS控制就可以了。
------解决方案--------------------
document.getElementsByName("num[]").length
document.getElementsByName("num[]")[0].value
document.getElementsByName("num[]")[1].value
...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!