怎么提交js插入行的数据

WBOY
Release: 2016-06-13 11:59:23
Original
1113 people have browsed it

如何提交js插入行的数据
用js写了一个动态插入行,每个字段都是input,并且整个table都是form里面,用post提交,貌似提交不了。
该如何获得js插入行的每个input的值呢?
------解决方案--------------------
同名表单控件要用数组方式命名
------解决方案--------------------
 这样命名。
------解决方案--------------------
什么叫‘提交不了’? 建议把问题仔细描述一下。最好把代码也贴一下。
------解决方案--------------------
innerHTML方式插入在某些浏览器中貌似不认,建议改成appendChild方式插入,或者直接用jquery的append( )方法插入

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!