• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

check whether the text box is filled with value or not

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 67732
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iterate through the elements looking for text boxes with a non-empty value.
[ April 26, 2007: Message edited by: Bear Bibeault ]
 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic