HI,
I am shaik khaleel..i have problem in javascript function..when text box text is changes thats time how can calulate two textbox values from client side and display in text box by using javascript code.any one can do this plz tell me urgent ...
HI,
I am shaik khaleel..i have problem in javascript function..when text box text is changes thats time how can calulate two textbox values from client side and display in text box by using javascript code.any one can do this plz tell me urgent ...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
khaleel shaikPosted Jan 16, 2013, 5:10 AM
Jignesh TrivediPosted Jan 15, 2013, 11:28 PM
to do any calculation used onblur instead of on change event, because onchange event not fired on certain scenario.
Please refer below link for example of calculation using onblur event
http://cscie12.dce.harvard.edu/lecture_notes/2003-04/20040406/calculation2.html
http://www.kirupa.com/forum/showthread.php?289699-javascript-calculating-form
hope this will help you.
Akkiraju IvaturiPosted Jan 15, 2013, 10:32 AM
Before that, validate if my understanding is correct:
You have two text boxes tb1 and tb2 for inputting.
If you change value in one of the textbox, it should calculate and change the value of another text box where you will display the calculated value.
Let me know if it is correct. Or provide me some more information.