There are some problems with your code.
$('.btn-usd').on('click', function(){ $(".cu-usd").removeClass('hide'); $(".cu-gbp").addClass('hide'); }); $('.btn-gbp').on('click', function(){ $(".cu-gbp").removeClass('hide'); $(".cu-usd").addClass('hide'); });
Use an operator . for the class element and end the quotation mark as it is passed as a string.
Also, to optimize, print $(".cu-usd") and $(".cu-gbp") in variables.
source share