动态按钮不起作用

编程入门 行业动态 更新时间:2024-10-11 13:19:31
本文介绍了动态按钮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我通过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

推荐答案

7月25日,2: 31 pm,tomb< t ... @ technetcenterwrote: On Jul 25, 2:31 pm, tomb <t...@technetcenterwrote: 我通过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.

25月18日,20:23,ZeldorBlat< zeldorb ... @ gmailwrote: On 25 jul, 20:23, ZeldorBlat <zeldorb...@gmailwrote: 7月25日下午2:31,tomb< t ... @ technetcenterwrote: On Jul 25, 2:31 pm, tomb <t...@technetcenterwrote: 我通过AJAX动态生成表单。表格和数据 非常好,但是我的重置按钮没有做任何事情。还有 3其他按钮调用javascript函数 - 它们工作正常。只需 复位按钮似乎已经死了。使用AJAX将表单插入Div 。以下是我的表单详细信息: 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>名称:< / td> ; < td> < input id =" txtCompany"类型= QUOT;文本" value ="公司 名称"大小= QUOT; 65 QUOT; name =" txtCompany" /> < / td> < / tr> <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"类型= 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 ="清除"> < / table> < / form> <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 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.

Tomb正在寻找答案,而不是更多问题...如果你没有建议一个b ,你为什么要打扰? br />

Tomb is looking for answers, not for more questions... If you do not propose one, why do you bother?

Webrickco写道: Webrickco wrote: Tomb正在寻找答案,而不是更多问题......如果你没有b $ b b提出一个,你为什么要打扰? 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- 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- 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

更多推荐

动态按钮不起作用

本文发布于:2023-10-26 07:04:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1529421.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:按钮   不起作用   动态

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!