动态添加的输入字段未提交 [英] dynamically added input fields not submitting
问题描述
这是 jsFiddle .对不起,如果不能正常工作;该死的东西很少对我有用...我讨厌jsFiddle,但是它可以更快地将代码提供给您...
here's the jsFiddle. i'm sorry if it doesn't work properly; damn things rarely do for me... i hate jsFiddle, but it gets the code to you faster...
它要去的php文档就是这样做的:
the php document it goes to simply does this:
<pre><?php
print_r($_POST);?>
</pre>
将行添加到DOM就好了.但这些值不会提交到$ _POST数组中.
the rows add to the DOM just fine. but the values do not submit to the $_POST array.
我想念什么?
是的,我已经阅读了此和
and yes i've read this and this and they don't help. using Mootools, btw, so please don't bother with any jQuery answers.
推荐答案
在您的代码中,我看到一个HTML语法错误.您能检查一下这一行吗?
In your code I see an HTML syntax error. Can you check this line:
<input class="catCell" name"catlist" id="catList" type="text" tabindex="345"
value="none or name" onChange="markFilled('catList', this.value);">
name
属性上的语法错误,这对于完成表单提交工作是必不可少的...
The syntax error is on name
attribute, that is essential to get form submission work...
这篇关于动态添加的输入字段未提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!