TabEvent上的Valuet从一个文本框转移到另一个texbox [英] Valuettransfer on tabevent from one textbox to another texbox
本文介绍了TabEvent上的Valuet从一个文本框转移到另一个texbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的.aspx页面中,我有四个文本框,分别为textbx1,textbox2,textbox3和textbox4.我想计算一下,如果我在textbox1中输入值,则其值在textbox4中应该是焦点,与输入值时相同textbox2,textbox3,应该是textbox4中的重点,请给我一个帮助.
在此先感谢
Hiin my .aspx page, I have four textbox, textbx1,textbox2,textbox3 and textbox4.I want do a calculation that if i enter value in textbox1, its value should be focous in textbox4, same as when i enter the value textbox2,textbox3 , it shouldbe foucus in textbox4 for there sum, plz can any one helpm how can i do it.
Thanks in advance
推荐答案
请考虑在文本框3上使用Onblur
事件.当对象失去焦点时发生此事件.
示例<INPUT TYPE = text onBlur = "alert(''Lost focus'')">
现在只需
textbox4.value = textbox3.value + textbox2.value + textbox1.value
希望这会有所帮助
干杯
Well consider usingOnblur
event on your textbox3. This event takes places when objects lose focus.
Example<INPUT TYPE = text onBlur = "alert(''Lost focus'')">
Now simply
textbox4.value = textbox3.value + textbox2.value + textbox1.value
Hope this helps
Cheers
这篇关于TabEvent上的Valuet从一个文本框转移到另一个texbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文