WordPress.org

Ready to get started?Download WordPress

Forums

Category dropdown list - no go! button? (6 posts)

  1. RobotDan
    Member
    Posted 9 years ago #

    Can anyone help me adapt my templates to rid the need for the 'go!' button next to the 'Categories' dropdown list on my site - so it jumps to the page automatically after selecting? I found some code on these forums which let me do this with the 'Archives' dropdown.
    The site is here:
    http://www.alittlepoison.com
    Cheers : )

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    5 minutes at google turned up this. I remember doing something similar on a website I had ages ago.

  3. RobotDan
    Member
    Posted 9 years ago #

    Thanks for looking into it for me, but I think that solution uses FrontPage forms... I've tried it out with no success.
    Can this be done by change the form code below, or would it need other code?
    <?php dropdown_cats(1, 'CATEGORIES', 'name', 'asc', 0, 0, 0); ?>

  4. sunshine
    Member
    Posted 9 years ago #

    Just tinker the JS from that Archives form.
    <form name="catform" onchange="window.location = (document.forms.catform.cat[document.forms.catform.cat.selectedIndex].value);">

  5. sunshine
    Member
    Posted 9 years ago #

    Whoops, missed that. But glad you got it working. :)

  6. dylan
    Member
    Posted 8 years ago #

    I tried sunshine's suggestion there, and it almost works, however the addresses led to by the form, they aren't correct. suggestions anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic