<select class="selectpicker" data-width="fit">
<option value="English" data-content='<span class="flag-icon flag-icon-us"></span> English'>English</option>
<option value="Español" data-content='<span class="flag-icon flag-icon-mx"></span> Español'>Español</option>
</select>
$('.selectpicker').change(function(){
console.log($(this).val())
});