Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Drop Down Menus in HTML

  • 07-11-2006 02:24PM
    #1
    Closed Accounts Posts: 78 ✭✭


    Hi,

    My web programming is a tad rusty and was wondering if someone could tell me the best / easiest way to do something.

    I want to have a drop down menu, that when someone chooses an option, it displays different text but still has the drop down menu their in case they want to choose a different option.

    I'm thinking the best way to do this is with a frame.

    What are your thoughts.
    J


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    It depends on what you want to do. If you only want to display text then it would be very simple to implement with javascript.


  • Registered Users, Registered Users 2 Posts: 5,618 ✭✭✭Civilian_Target


    Javascript. Have a series of links with your dropdown box located in the same part of all of them (CSS is good for that sort of thing), and have it so that onBlur of your dropdown box, JavaScript will load the relevant page...

    [EDIT]There are niftier ways to do it with hidden JS objects or AJAX, but that way's the simplest[/EDIT]


Advertisement