Support

Account

Home Forums ACF PRO How to execute a function on change event in select2? Reply To: How to execute a function on change event in select2?

  • Hi @nscdde02 and @mmjaeger

    I think you can use this code:

    <script>
    (function($) {
    $(document).ready(function(){
    
    	$("#acf-field_1234567890-input").on("change", function() {
            console.log($(this).val());
        });
    });
    
    })(jQuery);
    </script>

    Where field_1234567890 is your taxonomy field key.

    I hope this helps.