• I found simple coding for a dropdown menu for my categories:
    <form action=”<?php echo $PHP_SELF ?>” method=”get”>
    <?php dropdown_cats(0, ‘All’, ‘name’) ?>
    <input type=”submit” name=”submit” value=”view” />
    But I don’t want to have a “go to” button as found in that last line. I need some sort of “on change” coding that automatically sends the viewer to that particular link as soon as it’s selected (The same as the archives dropdown menu that I have at https://www.gretchenwrites.com).
    I’ve tried the suggestions I could find in the forums and none worked (the menu appeared, but the links didn’t go anywhere) and have tried looking at other people’s codes, to no avail.
    Can someone give me the complete text for a dropdown menu for categories that DOES NOT have a “go to” button? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gretchen

    (@gretchen)

    Yeah, I tried those, and I don’t know if I’m just not “getting” the instructions or what, but it’s not working. Here’s the archives version. What do I need to type in place of <?php get_archives(‘monthly’,”,’option’, 1); ?>. That part seems to be my problem.
    <form name=”archiveform” action=””>
    <select name=”archive_chrono” onchange=”window.location = (document.forms.archiveform.archive_chrono [document.forms.archiveform.archive_chrono.selectedIndex].value);”>
    <option value=”>By Month</option>
    <?php get_archives(‘monthly’,”,’option’, 1); ?>
    </select>
    </form>
    I can get the menu to show up, but the links don’t work. Or else they appear outside of the dropdown.
    Am I just being stupid here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Dropdown without a “go to” button’ is closed to new replies.