Сори, упс

This commit is contained in:
Egor Guslyancev 2023-11-29 16:17:11 -03:00
parent 66baffd5b4
commit f23dc3f541
GPG Key ID: D7E709AA465A55F9
1 changed files with 1 additions and 2 deletions

View File

@ -22,11 +22,10 @@ function actionFunction() {
for (var i = 0; i < boxes.length; i++) {
if (boxes[i].type === 'checkbox' | boxes[i].type === 'radio') {
var span = document.createElement('span');
var value =
span.innerHTML =
boxes[i].type === 'radio' && boxes[i].value == "1"
? "<b>" + boxes[i].value + "</b>"
: boxes[i].value;
span.innerHTML = value;
boxes[i].parentNode.insertBefore(span, boxes[i].parentNode.children[0]);
success = true;
}