File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Need help regarding text fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need help regarding text fields" Watch "Need help regarding text fields" New topic

Need help regarding text fields

baradhwaj chandramouli

Joined: Oct 23, 2009
Posts: 3
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

Joined: Jan 28, 2008
Posts: 5575

without page refresh ? if yes use ajax . so far, what you are tried?
swapnl patil
Ranch Hand

Joined: Aug 13, 2007
Posts: 80
Try this using Java Script
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63867

JSP cannot help you. This needs to be done with JavaScript.

This topic has been moved to the appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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


I agree. Here's the link:
subject: Need help regarding text fields
It's not a secret anymore!