Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let prices = $('.price')
- let descriptions = $('[width="520"]')
- for (let i = 0; i < prices.length; i++) {
- price = prices.eq(i).text().replace(/\D+/g, '')
- squaring = descriptions.eq(i).text().match(/\d+/)[0]
- prices.eq(i).append(' ' + Math.ceil(price / squaring) + '/кв')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement