Lorem ipsum

2mac

$('.country-flags-inner > .country-flag').click(function() {
$('.country-flags-inner > .country-flag.selected').removeClass('selected');
$( this ).addClass('selected');
});