Results 1 to 2 of 2

Thread: double menu for forms?

  1. #1
    Join Date
    Oct 2009
    Posts
    11

    double menu for forms?

    ello, im trying to create 2 menus,

    The 1st as below, and the 2nd with values based on that selected in menu 1
    eg.

    Code:
    <body>
     
     Menu 1
     
    <select>
      <option>Restaurants</option>
      <option>Takeaways</option>
      <option>Hotels</option>
      <option>Pubs</option>
    </select>
      
    Menu 2
      
    If restaurant selected then display the following options; 
     
     <select>
      <option>Chinese</option>
      <option>Indian</option>
      <option>Thai</option>
      <option>Italian</option>
    </select>
    
    If takeaways selected then display the following options;
    
    <select>
      <option>Pizza</option>
      <option>Mexican</option>
      <option>Burgers</option>
      <option>Kebabs</option>
    </select>
    
    </body>
    what is the best way of doing this?
    Will I have to look into javascript etc.?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    You can use chained select boxes as in this tutorial (needs javascript/ActiveX):-
    http://www.dynamicdrive.com/dynamici...ects/index.htm
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Double clicking after form...
    By rs131 in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 15 Sep 2006, 11:38 PM

Tags for this Thread

Posting Permissions

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