السلام عليكم

أنشأت هذا الكود لكن ظهرت به مشكلة وهي أنه يقوم بإنشاء بيانات عشوائية

مثلا : قيمة texttyp ، يختارها بشكل عشوائي وينفدها على حميع المحددات amount1

$(document).ready(function() {
$('.new_cpn_p').each(function() {
    var offer = $(this),
        getURL = offer.attr('data-url');
    $.get(getURL, function(data) {
        var textdis = $(data).find('.post-offer .dis').text();
        var textval = $(data).find('.post-offer .val').text();
        var texttyp = $(data).find('.post-offer .typ').text();
        var textsrcx = $(data).find('.post-offer .srcx').text();
        var textoldpric = $(data).find('.post-offer .oldpric').text();
        var textnewprc = $(data).find('.post-offer .newprc').text();
        $('.onsale').text(textdis);
        $('.amount1').text(texttyp);
        offer.html(textdis);
    }, "html");
});

});