DeveloperBarn Forums

DeveloperBarn

Programming & IT forum

change value of text box

This is a discussion on change value of text box within the JavaScript Programming forums, part of the Programming & Scripting category; below is function currently i m calling on oblur event of my text box.but what i needed as soon as ...

Go Back   DeveloperBarn Forums > Programming & Scripting > JavaScript Programming

  #1  
Old November 20th, 2008, 01:56 PM
guddu's Avatar
Barn Enthusiast
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 334
Rep Power: 2
guddu is on a distinguished road
Default change value of text box

below is function currently i m calling on oblur event of my text box.but what i needed as soon as user input value in textbox immdly that value should added or subtracted from another text box.should not wait for focus lost.

Code:
function mCalculateSumInvoice(LineNumber)						{
						 
							document.getElementById("txtInvoicedQuantity"+LineNumber).value =  parseInt(document.getElementById("txtInvoicedQuantity"+LineNumber).value) +   parseInt(document.getElementById("txtAdjustmentToAcceptedQuantity"+LineNumber).value);
						}
__________________
Love is physical attraction and mental destruction
Reply With Quote
  #2  
Old November 20th, 2008, 02:47 PM
Rebelle's Avatar
Barn Loyal
 
Join Date: Mar 2008
Posts: 748
Rep Power: 2
Rebelle will become famous soon enough
Default

something like this example?

Example
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > JavaScript Programming

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
edit with text box guddu JavaScript Programming 10 August 20th, 2008 11:15 AM
Change styles onclick BLaaaaaaaaaarche JavaScript Programming 6 July 22nd, 2008 11:02 AM
find words and change todd2006 JavaScript Programming 4 July 2nd, 2008 09:58 AM
Change to Reputation System jmurrayhead Announcements 0 June 2nd, 2008 09:57 PM


All times are GMT -4. The time now is 10:21 PM.


Copyright ©2008-2010, DeveloperBarn

Content Relevant URLs by vBSEO 3.3.2