Results 1 to 2 of 2

Thread: Ajax dropdowns not loading when there is more than one dropdown

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax dropdowns not loading when there is more than one dropdown

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tent.htm#combo

    3) Describe problem: If you try and create two dropdowns it will only load the link on the first dropdown. I.E. If I select December from the second drop down it never LOADS.

    HTML Code:
    <form>
    <table class="dropdown">
     <tr>
            <td><font color="#000000"><strong>DAILY:</strong></font><br />
                    <select id="ajaxmenu" size="1" onChange="ajaxcombo('ajaxmenu', 'content')">
                    <option value="Select">Select&nbsp;&nbsp;&nbsp;</option>
                    <option value="daily_tpc_report.php">Summary</option>
                    </select>
            </td>
            <td><font color="#000000"><strong>MONTHLY:</strong></font><br />
                    <select id="ajaxmenu" size="1" onChange="ajaxcombo('ajaxmenu', 'content')">
                    <option value="Select">Select&nbsp;&nbsp;&nbsp;&nbsp;</option>
                    <option value="daily_tpc_report.php">December</option>
                    </select>
             </td>
             </tr>
        </table>
    </form>
    Last edited by Snookerman; 04-22-2009 at 08:32 AM. Reason: added [html] tags and “Resolved” prefix

  2. #2
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I figured it out, you have to change the select id name for each dropdown.

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
  •