Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form Validation

 
Aditya Karnad
Greenhorn
Posts: 16
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,

Don't really need help. Just wanted to help out people who are struggling with form validations. I wrote some javascript methods that can easily validate anything and everything... its configurable too. Check it out.

Use the validateInput function on blur for the element and validateMandatory funtion on click of the submit button... for mandatory fields, make sure the id tag name string has 'Mandatory' heres the code...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic