Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

form validation  RSS feed

 
aymane chetibi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I am developping an application and I want to validate a form as the user go through and fill it.
I want when the user moves to another (textfield ) for example, the previous one is validated and in case of errors highlight this field.

Is there any tag that can let you know when the user has left a texfield ?
Any ideas how can I implement this are welcome.

Thank you.
regards,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a major, though rather common, misconception on how JSP works. Once the response is returned, the JSP's job is over.

So the type of interaction you are talking about requires a client-side mechanism. That means JavaScript.

You may find this article helpful in understanding the life-cycle of JSPs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!