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

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

  1. I have been exploring for a little for any high quality articles or weblog posts on this kind of house .
    Exploring in Yahoo I ultimately stumbled upon this web site.
    Studying this information So i am happy to exhibit that I’ve a very just right uncanny feeling I came upon exactly what I needed.
    I most no doubt will make sure to do not forget this website and provides it a glance on a continuing
    basis. http://cleckleyfloors.com/

    Reply

Leave a Comment