$('.selectpicker option[value=All]').click(function(){ $('.selectpicker option').each(function(){ this.selected = $('.selectpicker option[value=All]').attr('selected'); }); });