real-time text update via javascript
Posted: Thu Oct 23, 2003 4:46 pm
In the past, whenever implementing things like "Price Calculators" in JavaScript, my calculated "Cost" would appear in a text form field so that I could update the cost as the user fills out the form, rather than having to submit the page.
Is it possible to update text on the screen using JavaScript without displaying the calculated value in a form field?
I assume it has to be done by using the DOM but I don't have much experience in that area.
Might someone be able to prototype an example?
Is it possible to update text on the screen using JavaScript without displaying the calculated value in a form field?
I assume it has to be done by using the DOM but I don't have much experience in that area.
Might someone be able to prototype an example?