my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes check whether the text box is filled with value or not 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 "check whether the text box is filled with value or not" Watch "check whether the text box is filled with value or not" New topic
Author

check whether the text box is filled with value or not

rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
hi ,
i have a form which contains text boxes.
If user fills some text boxes and click any link (which goes to previous page etc), a pop up should be displayed warning the user that he had already filled some text boxes and moving to the clicked link will discontinue the registration he is doing.

i am able to check whether the user had changed the data in text boxes using onchange but i need some function to check whether the text box is already having some value (then also it should show the pop up).

Please advice.
thanks in anticipation.
[ April 26, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Iterate through the elements looking for text boxes with a non-empty value.
[ April 26, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: check whether the text box is filled with value or not