Results 1 to 2 of 2

Thread: Chained selects multiple forms

  1. #1
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chained selects multiple forms

    1) Script Title: chained selects Help! please

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ects/index.htm

    3) Describe problem:

    I have implemented the chained selects on a search form and everything worked at first!

    When I introduced another form to the page (site search) form. the chained selects dropdowns no longer get populated.

    Has anyone else had this problem or have I missed something.

    In brief when I have more than one form within the page chained selects doesn't work.

    Can anyone suggest a solution(HELP)

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Make sure that your version of this:

    HTML Code:
    <body onload="initListGroup('vehicles', document.forms[0].make, document.forms[0].type, document.forms[0].model, 'save')">
    Is still pointing to the desired form. 0 is the first form on a page 1 is the second, and so on.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •