Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help regarding text fields

 
baradhwaj chandramouli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Need help inTextfields.. Am a newbie in JSP!


I am having two text fields in my page..
My req is this :

If i type some value in the first one the next one should automatically display 12.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
without page refresh ? if yes use ajax . so far, what you are tried?
 
swapnl patil
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this using Java Script
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP cannot help you. This needs to be done with JavaScript.

This topic has been moved to the appropriate forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need for Ajax. Seems like that is the buzz word to use for basic 101 JavaScript.

use onkeypress or onchange

set the textbox's value to be 12

Eric

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic