Title: Automatically submit filter issue with Select2
Last modified: August 31, 2016

---

# Automatically submit filter issue with Select2

 *  Resolved [ekimbo](https://wordpress.org/support/users/ekimbo/)
 * (@ekimbo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatically-submit-filter-issue-with-select2/)
 * First off, great plugin!
    I am running BTF v: 1.2.9. The auto select functionality
   isn’t working with the select2 library enabled but works with select2 library
   disabled. Below are the 2 functions I have tried. —– jQuery(‘.beautiful-taxonomy-
   filters-select’).change(function(){ jQuery(‘#beautiful-taxonomy-filters-form’).
   submit(); }); —– jQuery(‘.beautiful-taxonomy-filters-select’).on(‘change’, function(){
   jQuery(‘#beautiful-taxonomy-filters-form’).submit(); });
 * Any help is appreciated!
 * [https://wordpress.org/plugins/beautiful-taxonomy-filters/](https://wordpress.org/plugins/beautiful-taxonomy-filters/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [vkranendonk](https://wordpress.org/support/users/vkranendonk/)
 * (@vkranendonk)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatically-submit-filter-issue-with-select2/#post-7139459)
 * The code works for me, with and without Select2, BTF 1.2.9 and WordPress 4.4.2.
 * Perhaps it is:
    – Browser specific, my test was in Chrome. – Some other script
   is blocking this script. – Jquery is not available
 *     ```
       $('.beautiful-taxonomy-filters-select').on('change', function(){
           $('#beautiful-taxonomy-filters-form').submit();
       });
       ```
   
 *  Plugin Author [Jonathan de Jong](https://wordpress.org/support/users/jonathandejong/)
 * (@jonathandejong)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatically-submit-filter-issue-with-select2/#post-7139484)
 * Hi Ekimbo,
 * It should work with the latest BTF which runs select2 v 4.0.2.
 * However it is possible that you have another plugin which initiates select2 before
   BTF does and loads in an older version. I know version 4.0.0 and possibly 4.0.1
   have that issue.
 * If you check your source code you should be able to see where select2.full.min.
   js is being loaded from.
 *  Thread Starter [ekimbo](https://wordpress.org/support/users/ekimbo/)
 * (@ekimbo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/automatically-submit-filter-issue-with-select2/#post-7139487)
 * I will look in to this. Chances are it’s another plugin causing the issue.
    Thanks
   for the responses. Cheers

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Automatically submit filter issue with Select2’ is closed to new replies.

 * ![](https://ps.w.org/beautiful-taxonomy-filters/assets/icon-256x256.png?rev=1654967)
 * [Beautiful taxonomy filters](https://wordpress.org/plugins/beautiful-taxonomy-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beautiful-taxonomy-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/reviews/)

## Tags

 * [auto-submit](https://wordpress.org/support/topic-tag/auto-submit/)

 * 3 replies
 * 3 participants
 * Last reply from: [ekimbo](https://wordpress.org/support/users/ekimbo/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/automatically-submit-filter-issue-with-select2/#post-7139487)
 * Status: resolved