• This is the code that I have so far:

    <script type="text/javascript">
    function submitForm() {
    var list = document.navList.subMenu;
    var page = list.options[ list.selectedIndex ].value;
    if (page != "home")
    window.location = page;
    return false;
    }
    </script>
    
    <form name="navList" onsubmit="return submitForm();">
    <select name="subMenu">
    <option value="home"> </option>
    <option value="page1.html"> Front </option>
    <option value="page2.html"> Middle </option>
    <option value="page3.html"> Last </option>
    </select>
    <input type="submit" value="Go" />
    </form>

    What I want to do is use a shortcode from my theme to create the “Go” button. Does anyone know how I can do this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create a Drop-Down box with Go Button?’ is closed to new replies.