WordPress.org

Ready to get started?Download WordPress

Forums

In search of a working category list dropdown (5 posts)

  1. phpNeophyte
    Member
    Posted 9 years ago #

    Did you add the appropriate javascript in the head of your document?
    Kevin

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Check out a site such as http://www.dynamicdrive.com for drop down scripts that do what you need.
    Although you do have that tag there, that just tells the browser that what follows is something that is not html, and somewhere in the < head > section should be the complete instructions for the commands that that script uses. Get that, and all should be fine.

  3. Beel
    Member
    Posted 9 years ago #

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

  4. Silver
    Member
    Posted 9 years ago #

    I didn't experience a runtime error when I went to the link you specified in the above post (your site). However, I did notice that you used
    onChange="MM_jumpMenu('parent',this,0)"
    within the jump menu code for your Category Drop Down menu but when I viewed the source for the page the Javascript code that Beel provided to you (above) was missing.

  5. pezastic
    Member
    Posted 9 years ago #

    Now, there's a plugin that gives you both a hierarchal list -and- post count for your categories in a dropdown. It can be found here.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.