Hi, I have 5 Numeric fields in my from, I am using onkeyup to check for numeric values only, now I have a total field also. I would like to have a sum of the values entered in the 5 fields to be shown automatically on this total field. How to do this, please help.
anirban1087
0
Junior Poster in Training
Recommended Answers
Jump to PostYou need to get the display element by either go through DOM (parentElement.subelementName...) or directly access via the element ID (document.getElementById(elementId)). Then assign/append the value to the display element's value or innerHTML depending on what type of your display element (input/textarea -> value, div/span -> innerHTML). If you still does …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.