wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need help regarding text fields" Watch "Need help regarding text fields" New topic
Author

Need help regarding text fields

baradhwaj chandramouli
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

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

This topic has been moved to the appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help regarding text fields
 
Similar Threads
How Do I Handle Two Action Forms?
Test to determine if field or method exists
javascript regular expression related problem.
Getting values of dynamically created text fields
popup