Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic addition of numbers entered in textbox

 
sri kris
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to have a texbox whic displays a sum of all values entered in toher textboxes. As the value gets changed in the other textboex the total value also should get changed. This should not be done after clicking on the submit button.
 
Vilmantas Baranauskas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like you need to implement it in JavaScript, not directly in Struts.
 
sri kris
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you provide an example for that
Thanks in advance!!
 
Vilmantas Baranauskas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


JavaRanch didn't allow to post code sample with "onkeyup" and therefore I've replaced it by "on-keyup". You have to replace it back.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic