document.getElementById('id').value=this.offerNum;
document.getElementById('price').value=this.offers[this.offerNum].PRICE;
$('.product-item-detail-price-current').click(function() {
$('#price').val($(this).data('info'));
});
<div data-info="2000" class="product-item-detail-price-current" id="bx_117848907_265_price" style="font-size: 30px;">2 000 руб.</div>
https://4pda.ru/forum/index.php?act=findpost&pid=1...