Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 21-Sep-11 19:16pm
v4

1 solution

Well consider using Onblur 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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900