setTimeout(function() { var data=$(".product_right_side .rc_container .rc_widget__option__label").addClass("freeshippingtext"); if($(".product_right_side .rc_container .rc_widget__option__label").hasClass("freeshippingtext") == true ){ var newdata="FREE SHIPPING WITH SUBSCRIPTION!"; $(".freeships_subs").append(""+newdata+""); } else{ $(".freeships_subs").html(" "); } }, 3000);