Using onChange event with wp_dropdown_users
-
Instead of having a submit button at all, how would this be done with the onChange event?
Basically, I’d like to select an author from the dropdown list and have it directly link to the corresponding author page, rather than clicking on a submit button.
Here is the markup I have with a submit button:
<form action="<?php bloginfo('url'); ?>" method="get"> <?php wp_dropdown_users(array('name' => 'author')); ?> <input type="submit" name="submit" value="view" /> </form>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using onChange event with wp_dropdown_users’ is closed to new replies.