Title: [Plugin: Query Multiple Taxonomies] DropDown OnChange
Last modified: August 19, 2016

---

# [Plugin: Query Multiple Taxonomies] DropDown OnChange

 *  [Vrefr](https://wordpress.org/support/users/vrefr/)
 * (@vrefr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-query-multiple-taxonomies-dropdown-onchange/)
 * Hi Scribu,
 * kind of suggestion for future versions, but if you could give me a hint how to
   hack widget.php would be also good.
 * The issue is that currently to submit selected item in dropdown you have to click
   the submit button.
    I would like to be able to sumbit selected item in dropdown
   menu just after selecting it with the help of `OnChange=` I believe?
 * Tried to hack it by myself but was affraid to crash the whole plugin….
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Vrefr](https://wordpress.org/support/users/vrefr/)
 * (@vrefr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-query-multiple-taxonomies-dropdown-onchange/#post-1906704)
 * hmmm… as you didn’t answer I started to experiment 🙂
    the decision I don’t like,
   as it may dissapear after the plugin will be updated, was to hack the code of/
   plugins/query-multiple-taxonomies/widget.php Thats what I did: In the function`
   private function generate_dropdowns( $taxonomies ) {` just after `.html( 'select',
   array( 'name' => qmt_get_query_var( $taxonomy ),` inserted `'onChange' => 'location.
   href="?city="+this.form.city.options[this.form.city.selectedIndex].value;'`
 * I used it only for one concrete dropdown menu for taxonomy called “city”, which
   is also the name of <select> field. Didn’t experiment but if you would insert
   variable (e.g. `$taxname = qmt_get_query_var( $taxonomy );`)instead of “city”
   it theoretically should paste universal solution for all other taxonomies you
   use for dropdown.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Query Multiple Taxonomies] DropDown OnChange’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/query-multiple-taxonomies.svg)
 * [Query Multiple Taxonomies](https://wordpress.org/plugins/query-multiple-taxonomies/)
 * [Support Threads](https://wordpress.org/support/plugin/query-multiple-taxonomies/)
 * [Active Topics](https://wordpress.org/support/plugin/query-multiple-taxonomies/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-multiple-taxonomies/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-multiple-taxonomies/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Vrefr](https://wordpress.org/support/users/vrefr/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-query-multiple-taxonomies-dropdown-onchange/#post-1906704)
 * Status: not resolved