so this is my function for adding and removing but it only work for adding it doesnt remove on again click
(function ($) {
$(".call-us-button .call").on("click", function () {
$(this).parent().find(".phone-number").fadeIn();
$(this).parent().find(".qr-code-call").fadeIn();
$(this).parent().addClass("callBtnActive");
});
$(".call-us-button .call").on("click", function () {
$(this).parent().find(".phone-number").fadeOut();
$(this).parent().find(".qr-code-call").fadeOut();
$(this).parent().removeClass("callBtnActive");
});
})(jQuery);
clickevent handler and usehasClassto determine whether to fade in or out and whether to add or remove the class.