Хочу заполонить скрытое поле input данными из переменной для последующей отправки через mail.php.
document.getElementById('itemTitleShow').innerHTML = creditGetItemTitle;
document.getElementById('itemImageShow').innerHTML = creditGetImage;
document.getElementById('itemPriceStatic').innerHTML = creditCartPrice;
document.getElementById('itemPriceHover').innerHTML.value = creditCartPrice;
document.getElementById('itemPriceFirst').innerHTML = creditResultShowSecond;
document.getElementById('itemPriceSecond').innerHTML = creditResultShow;
document.getElementById('itemfirstSend').innerHTML = firstSend;
document.getElementById('itemsecondSend').innerHTML = secondSend;
document.getElementById('itemthirdSend').innerHTML = thirdSend;
document.getElementById('itemfourSend').innerHTML = fourSend;
document.getElementById('itemPolovina').innerHTML = creditPolovina;
document.getElementById('itemPolovinaSecond').innerHTML = creditPolovinaSecond;
document.getElementById('itemPolovinaThird').innerHTML = creditPolovinaThird;
<div class="resultRightBox">
<div id="closeItem" class="closeEny" onclick="closeItem()"><a>X</a></div>
<div id="itemTitleShow"></div>
<div id="itemPriceStatic"></div>
<input id="itemPriceHover" type="hidden" name="priceForPost" value="" />
<input name="radAnswer" style="float:left; margin-right: 5px;" type="radio" value="Половина" checked="checked"><div id="itemPriceFirst"></div><div id="itemPolovina"></div><div id="itemPolovinaSecond"></div><div id="itemPolovinaThird" style="padding-bottom: 10px;"></div>
<input name="radAnswer" style="float:left; margin-right: 5px;" type="radio" value="Три платежа"><div id="itemPriceSecond"></div><div id="itemfirstSend"></div><div id="itemsecondSend"></div><div id="itemthirdSend"></div><div id="itemfourSend"></div>
</div>