Support

Account

Home Forums Backend Issues (wp-admin) Regarding Select dropdown on change Reply To: Regarding Select dropdown on change

  • I managed to make it work through JQuery,
    we need to check if the input field for the element is changed, here is the code if someone needs it:

    
    // JavaScript Document
    (function($) {
    	$(document).ready(function(){
    		alert ('hejsan test ny3');
    		
    			
    		if ( $( "#acf-field_5887df9fb89a9-input" ).length ) {
    			alert('#acf-field_5887df9fb89a9-input exists yeyyy!' );
    		} 
    			
    		$( "#acf-field_5887df9fb89a9-input" ).change(function(e) {
    			alert( "Handler for .change() called." + e.val );
    		});
    	});
    })(jQuery);
    

    regards