Validating all the fields in form using js

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    Validating all the fields in form using js

    Hi all,

    I am bit confused with the form validation. here is my case. i have a form which have two select boxes initially. when i select any value in that it will dynamically generate few more text boxes and select boxes.

    For example with the above procedure if i generate around 50 combination of text boxes and select boxes. how can i quickly validate all the fields whether it is empty or invalid entry.

    can some one guide me how to validate this. i can able to validate static text boxes, what ever in the form. but dont know how to check dynamic values.

    Can someone help in this please,

    Thanks in advance,

    magesh
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    whenever you create the form elements, attach a validating event handler to it.

    Comment

    • phpmagesh
      New Member
      • Nov 2008
      • 119

      #3
      Thanks Dormilich,

      Can you help me with some sample event handler. so that i can force start with that.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        for instance here (too lazy to type it all again)

        Comment

        Working...