jQuery(function($) {
// Update value on change.
jQuery( '.select_layered_nav_producent' ).change( function() {
var slug = jQuery( this ).val();
jQuery( ':input[name="filter_producent"]' ).val( slug );
// Submit form on change if standard dropdown.
if ( ! jQuery( this ).attr( 'multiple' ) ) {
jQuery( this ).closest( 'form' ).submit();
}
});
});