清除表单按钮无法正常工作

编程入门 行业动态 更新时间:2024-10-25 04:18:55
本文介绍了清除表单按钮无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

确定。我有一个表单,其中有一个按钮,我从HTML工具箱中获得了一个重置​​按钮。我将按钮重命名为Clear Form。当用户键入文本框然后单击清除表单按钮时,它会清除某些文本框,但不会全部清除。不清楚的文本框是进行自动计算的文本框。为什么会这样?有没有办法解决它?

Ok. I have a form that has a button that I got from the HTML toolbox that is a reset button. I renamed the button to Clear Form. When a user types into the textboxes and and then clicks on the Clear Form button, it clears some of the textboxes but not all. The textboxes that does not clear are the ones that does auto calculations. Why is this happening? Is there a way to fix it?

<td> <input id="Reset1" type="reset" value="Clear Form" önclick="return Reset1_onclick()" /></td> <td>

推荐答案

您是否尝试访问服务器端代码, 尝试向控件添加runat =server属性 这可能会解决问题。 希望这对你有所帮助。 问候, RK Hi, Are you trying to access server side code, Try to add runat="server" attribute to the control This will possibly resolve the problem. Hope this helps you a bit. Regards, RK

更多推荐

清除表单按钮无法正常工作

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

发布评论

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

>www.elefans.com

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