Results 1 to 2 of 2

Thread: Need help with the Form to wizard script

  1. #1
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with the Form to wizard script

    1) Script Title: :: jQuery Form to Form Wizard

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...validateoption

    3) Describe problem: Validating textfields, radiobuttons and textareas goes well but i can't get the script to validate a select or a checkbox. What am i missing?

    Thanks and regards,

    Mike
    Last edited by Mike1979; 09-04-2012 at 04:08 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The script does validate checkboxes and select menus, but under the following circumstances:

    1) For checkboxes, it will only look at a group of checkboxes- where multiple checkboxes all share the same name or id- to see if one is checked. If you're trying to validate whether a lone checkbox (one with a distinct name) is checked, the script currently doesn't do that.

    2) For select menus, its definition of a filled out select menu is one that has an option selected and that the selected option has text defined between its tag. A single row select menu like the below will report the first option has selected without any user interaction at all, passing the script's validation test automatically:

    Code:
    <select id="hobbies">
    <option>hobby 1</option>
    <option>hobby 2</option>
    <option>hobby 3</option>
    </select>
    For 1), you can use the below modified script to also check for long checkbox/radio buttons to see if they are checked. For 2), please verify first whether the issue you're having is in fact just an example of the above scenario with single row select menus.
    Attached Files Attached Files
    DD Admin

Similar Threads

  1. jQuery Form to Form Wizard: new line is created after 3rd step
    By nishantwithyou in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-20-2012, 01:43 PM
  2. jQuery Form to Form Wizard (v1.1) issues
    By Gonzo714 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 04-23-2012, 03:19 AM
  3. jQuery Form to Form Wizard (v1.1) style steps individually
    By antonyf in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-24-2012, 09:17 AM
  4. Use Spry Validation with jQuery Form to Form Wizard (v1.1)
    By dreamwuser in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 01-05-2012, 11:57 PM
  5. jQuery Form to Form Wizard in registration templates
    By Emeralda in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-22-2011, 04:48 PM

Bookmarks

Posting Permissions

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