问题描述
我通过AJAX动态生成表单。表格和数据
非常好,但是我的重置按钮没有做任何事情。还有
3其他按钮调用javascript函数 - 它们工作正常。只需
复位按钮似乎已经死了。使用AJAX将表单插入Div
。以下是我的表单详细信息:
< form id =" clientform" name =" clientform">
< table>
< tr>
< td>名称:< / td> ;
< td>
< input id =" txtCompany"类型= QUOT;文本" value ="公司
名称"大小= QUOT; 65 QUOT; name =" txtCompany" />
< / td>
< / tr>
...一些更多的标签和输入文本框.....
< input id =" add"类型= QUOT按钮"的onclick = QUOT; addThisClient(1,4);"值= [新增" name =" add" />
< input id =" update"类型= QUOT按钮"的onclick = QUOT; updateThisClient(1,4);"值= [更新" name =" update" />
< input id =" delete"类型= QUOT按钮"的onclick = QUOT; deleteThisClient(1,4);"值= QUOT;删除" name =" delete" />
< input type =" reset" value =" Clear" />
< / table>
< / form>
你能看到重置按钮会死的原因是什么?
Tom
I am generating a form dynamically through AJAX. The form and the data
come in very nicely, but my reset button doesn''t do anything. There are
3 other buttons that call javascript functions - they work fine. Just
the reset button seems to be dead. The form is inserted into a Div
using AJAX. Here are my form details:
<form id="clientform" name="clientform">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany" type="text" value="Company
Name" size="65" name="txtCompany"/>
</td>
</tr>
.... some more labels and input text boxes.....
<input id="add" type="button" onclick="addThisClient(1,4);" value="Add" name="add"/>
<input id="update" type="button" onclick="updateThisClient(1,4);" value="Update" name="update"/>
<input id="delete" type="button" onclick="deleteThisClient(1,4);" value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>
Can you see any reason why the reset button would be dead?
Tom
推荐答案
这与PHP有什么关系?如果你打算说
之类的话,我正在使用PHP来生成HTML和Javascript
甚至不打扰 - - 那不是正确的答案。
What does this have to do with PHP? And if you''re planning to say
something like, "I''m using PHP to generate the HTML and Javascript"
don''t even bother -- that''s not the right answer.
这与PHP有什么关系?如果你打算说
之类的话,我正在使用PHP来生成HTML和Javascript
甚至不打扰 - - 那不是正确的答案。
What does this have to do with PHP? And if you''re planning to say
something like, "I''m using PHP to generate the HTML and Javascript"
don''t even bother -- that''s not the right answer.
Tomb正在寻找答案,而不是更多问题...如果你没有建议一个b
,你为什么要打扰? br />
Tomb is looking for answers, not for more questions... If you do not
propose one, why do you bother?
因为他在错误的地方寻找答案。
墓:请再问一次,但是在javascript新闻组。
-
------------------------- ---------
$ b $bIvánSánchezOrtega-ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/
自豪地使用2.6.20-1-amd64内核运行Debian Linux,KDE 3.5.7和PHP
5.2.3-1 + b1生成此签名。
正常运行时间:22:10:04最多40天,5:45,5位用户,平均负载:0.84,0.68,
0.89
Because he''s looking for answers in the wrong place.
Tomb: please ask again, but in a javascript newsgroup.
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.20-1-amd64 kernel, KDE 3.5.7, and PHP
5.2.3-1+b1 generating this signature.
Uptime: 22:10:04 up 40 days, 5:45, 5 users, load average: 0.84, 0.68,
0.89
这篇关于动态按钮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!