wp_dropdown_pages without submit button

Found a great tutorial: How to Create a Dropdown List of Specified Pages in a Widget (used to be a link, but article no longer exists). A portion of which I used to create my own drop down / select menu using the WP function wp_dropdown_pages.

The following code can be used in place of wp_dropdown_pages:

<form name="form1" id="form1" action="" method="get">
<?php $select = wp_dropdown_pages('show_option_none=Select%20a%20Page&depth=1&sort_column=menu_order&echo=0');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
?>
<noscript><input type="submit" name="submit" value="view" /></noscript>
</form>

see comments below: you must be sure there are not linebreaks in the middle of expressions

You can use any of the usual wp_dropdown_pages parameters. The code above will list only top-level pages, and in menu_order (the integer entered in the order field of a given WP Page).

Erin Bruce