как быть если их несколько, 7 пар (div, checkbox) к примеру
document.querySelectorAll('a').forEach(a => a.href = "https://www.google.com")
думал это надо всё в массиве хранить, и из него как то доставать потом все значения и подставлять в таблицу
<i class="fas fa-helicopter"></i>
Я так понимаю, раз в проверке есть Array.from(), значит на выходе из генератора не массив, а какой-то массивоподобный объект
*getMod256(numbers)
var prices = document.querySelectorAll('input[name=Price]');
var totalPrice = 0
for(let i = 0; i < prices.length; i++) {
if(prices[i].checked) {
totalPrice = +totalPrice + +prices[i].value // так переводим строку в число
}
}
document.querySelector('#div-total-price').textContent = totalPrice
https://github.com/kriskbx/whatsapp-sharing/issues...
In javascript I have my message with line breaks and line feed like this:
Sending that to Whatsapp won't work, you have to encodeURI first, as if it was for a mailto:
Sending encoded message as parameter like whatsapp://send?text=whatsappMessage now displays line breaks and returns on Whatsapp.