Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sum the values of a text field in a tabular form using JavaScript

Simon GaddApr 27 2008 — edited Apr 30 2008
Hi Folks.

OK, I put my hands up. I don't know Java script but I'm picking up the basics and I WANT to learn.

Here's my situation.

I have a tabular form which has lots of Standard Report Columns and ONE text field.

I want to sum the values entered in the text field, real time, using Java Script without the need to have a round trip to the database.

I'm guessing this will involve some kind of loop. Once I have that SUM figure I will store it in a hidden item and it will be used for validation when the user submits the form.

If anyone can give me a simple Java Script to do this, or point me in the direction of one, I'd be very grateful.

Many thanks.

Dogfighter.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2008
Added on Apr 27 2008
9 comments
2,112 views