We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16702 ☆ A M B ☆
    • 536 Posts
    Hello,


    i make some test with this:

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


    and i thing this JavaScript code in original:
    <script language="JavaScript">
    function jumpTo(selObj){
    thevalue = selObj.options[selObj.selectedIndex].value;
    if (thevalue != 0) window.location= thevalue;
    return false
    }
    </script>


    not work properly...(for me)

    my change is:
    <script language="JavaScript">
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    }
    //-->
    </script>


    that work 100% and clean.
    and make change in:
    <select name="goto" onChange="jumpTo(this);">


    with this:
    <select name="goto" onChange="MM_jumpMenu('parent',this,0)">


    Thanks,
    have a nice December with SNOW!


    Kristalin
      palma non sine pulvere
      • 26931
      • 2,314 Posts
      thanks for sharing Kristalin ....and yeah, let it snow smiley