if you click on the element taht belong to the country class, toggle the ended class. That is, the enabled class is added to the element if it is not present and is removed if it is code example
Example: jquery toggle class
$( "#foo" ).toggleClass( 'className', addOrRemoveOptional );