ДВ
Size: a a a
ДВ
⠀
var total = [].slice.call(document.querySelectorAll('.total-price')).map(item => item.innerText);
console.log(parseInt(total.slice(2))); ДВ
MI
ДВ
MI
ДВ
MI
⠀
var total = [].slice.call(document.querySelectorAll('.total-price')).map(item => item.innerText);MI
ДВ
MI
ДВ
var total = [].slice.call(document.querySelectorAll('.total-price')).map(item => item.innerText);⠀

var total = [].slice.call(document.querySelectorAll('.total-price')).map(item => item.innerText);
console.log(parseInt(total.innerText.slice(2)));ДВ

var total = [].slice.call(document.querySelectorAll('.total-price')).map(item => item.innerText);
console.log(parseInt(total.innerText.slice(2)));MI

var total = [].slice.call(document.querySelectorAll('.total-price')).map(item => item.innerText);
console.log(parseInt(total.innerText.slice(2)));AO
⠀
ДВ
ДВ
<input class="cheng" type="text" value="3555222">
<div>new convert sum: <span class='sum'></span></div>
<script>
$(document).ready(()=>{
$('.cheng').change(function() {
$('.sum').text($(this).val().toString().split("").reverse().join("").match(/.{1,3}/g).reverse().join(","));
});
})
<?script>