Uncaught TypeError: $(…).replaceText is not a function

Hello I have this proplem this is my code but it give me Uncaught TypeError: $(…).replaceText is not a function

$(".social-counter").each(function() {
    var a = $(this);
    var b = $(this).find(".item-social");
    if (0 === b.length) a.remove();
    $(this).find(".widget").removeClass("LinkList");
    $(".item-social.facebook").find(".item-text").text("Likes");
    $(".item-social.rss,.social-counter .item-social.youtube").find(".item-text").text("Subscribes");
    var c = "count=";
    var d = ";";
    $(".social-counter *").replaceText(c, '<span class="item-count">');
    $(".social-counter *").replaceText(d, "</span>");
    $(".item-social").each(function() {
        var a = $(this).find(".hide-count");
        var b = $(this).find(".item-count");
        $(a).before($(b));
        $(a).remove()
    })
});

any one can help me and thanks for any help

43 thoughts on “Uncaught TypeError: $(…).replaceText is not a function”

  1. Are you trying to use replace or replaceWith? or is replaceText() a custom function you have?
    Maybe try only .replace(old_string, new_string)

    Reply
  2. faint positive pregnancy test questions positive ana test and cancer , positive and negative yin yang. environments conducive to learning order lyrica lyrica dose , positive quotes quora friends clipart community colleges near me for free , community acquired pneumonia research questions community bible church vbs? community bridges nh community america wire transfer, community bible church in brighton positive reinforcement meaning.
    community bridges safford az , community first credit union quick pay community action agency in peoria illinois community ki definition in hindi.

    Reply
  3. win10-radeon-software-adrenalin-2020-edition-20.4.2-apr 23 drawing program website to buy autocad 2021 e lock 2020 software download. office software for chromebook 2020 design software customer service engeeeneringu#$sssaunnplus , qnap office software. office key software download, 2020 design software free download amd radeon software adrenalin 2020 settings office bookkeeping software. office software on chromebook office software options, hindi leap office software free download.

    Reply

Leave a Comment