Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Kal
    Kal is offline
    Regular Coder
    Join Date
    Dec 2005
    Posts
    309
    Thanks
    0
    Thanked 0 Times in 0 Posts

    validating a dynamic form

    Hi guys,

    I have a complex dynamic form, consisting of radio, input boxes, checkboxes and drop downs. they all have individual names, however some form attributes appear more than once depending on which options are chosen in the form.

    i am finding it difficult to validate this dynamic form, and i think it is because of this. does anyone have ny ideas as the best way to validate a dynami form?

    thanks in advance.

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,503
    Thanks
    3
    Thanked 500 Times in 487 Posts
    form elements are recorded in an array accessed by

    formobject.elements.

    this array may be examinined to collect unique names.

    verification may be carried out on each of these names dependent on the element type.

    If an element type has more than one verification criteria the verification type my be specified in the element attributes, the class name is is good as it can contain more than one class rule(separated by a space).
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #3
    Kal
    Kal is offline
    Regular Coder
    Join Date
    Dec 2005
    Posts
    309
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i dont suppose you have an example that i could work off, i'm not a brilliant javascript programmer.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •