自动显示在第三个文本框中 [英] automatically show in third textbox

查看:86
本文介绍了自动显示在第三个文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在两个文本框中添加值并在asp.net中自动显示在第三个文本框中C#



i不想使用textchanged事件

i想要使用keypress事件

how to Add values in two textbox and display in third textbox automatically in asp.net C#

i don't want to use textchanged event
i want to use keypress event

推荐答案

W3schools有一个如何使用keypress事件的好例子。请参阅 jQuery keypress()方法 [ ^ ]

只需将其更改为从文本框中取出2个数字,将它们加在一起,然后输入结果进入第三个文本框。非常简单。
W3schools has a good example of how to use the keypress event. See jQuery keypress() Method[^]
Just change it to take the 2 numbers from the textboxes, add them together, and put the result into a third textbox. Pretty simple.


这篇关于自动显示在第三个文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆