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 Capturing values in textbox 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 "Capturing values in textbox" Watch "Capturing values in textbox" New topic

Capturing values in textbox

saravanan ks

Joined: Jul 10, 2003
Posts: 9
Hi friends,
I'm using two textboxes called username and password.
First i'm entering username and submitting , it will popup an alert message
to enter the password. At the moment i click ok to give password, username becoming blank.
How to hold the username value in the text box.
Please help
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
The textbox value will stay by default, unless you are clearing it. Probably you are clearing the text in the textbox when the alert button is pressed.
If you can paste the code here, it might give a clue.

Quaerendo Invenietis
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
now is this alert code being generated on client side or on server side?
baically if you show the code it might be easier to help you out..
I agree. Here's the link:
subject: Capturing values in textbox
It's not a secret anymore!