We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18597
    • 12 Posts
    Hello i need a simple dropdown menu .. im using this:



    http://wiki.modxcms.com/index.php/Dropdown_Menu_with_Ditto



    the menu is showed but not jumping the link

    i got this:

    <option value="[~[+id+]~]">[+pagetitle+]</option>

    in a chunk named dropdown

    and this:

    <script language="JavaScript">
    function jumpTo(selObj){
    thevalue = selObj.options[selObj.selectedIndex].value;
    if (thevalue != 0) window.location= thevalue;
    return false
    }
    </script>
    <form action="#" onsubmit="return false" method="post">
    <select name="goto" onChange="jumpTo(this);">
    [!Ditto? &parents=`56` &tpl=`dropdown` &display=`100` &total=`100` &sortBy=`pagetitle` &sortDir=`ASC`!]
    </select>
    </form>

    in the template

    please some help!!!!

    thanks a lot

    <m