Support » Fixing WordPress » Drop down menu script with links

  • Wish Web Geek


    I do not know javascript and am trying to create a drop down menu. Here is the script I pulled from another website. But the value=”url” does not work. I’m sure my <script></script> is incorrect, but don’t know what it should be. Please view below:

    <select id=”ddl_example6″ name=”ddl_example6″ style=”font-size:10px; width: 220px;”>
    <option selected=”selected”>- Select Activity-</option>
    <option value=”/find-your-trip/hiking//”>Hiking Tours</option>
    <option value=”/find-your-trip/kayaking/”> Kayaking Tours</option>
    <option value=”/find-your-trip/lodge-based-adventures/”>Lodge Based Adventures</option>
    function setSelectedIndex(s, valsearch)
    // Loop through all the items in drop down list
    for (i = 0; i< s.options.length; i++)
    if (s.options[i].value == valsearch)
    // Item is found. Set its property and exit
    s.options[i].selected = true;

    Thank you for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Good Guy


    Your theme should be able to do it for you automatically. All modern themes running on 3.4.2 are capable of drop-down-menus. what is your theme called?

    Wish Web Geek


    I created the theme, but I can’t see how to make it a drop down.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Drop down menu script with links’ is closed to new replies.