Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinakyrychynska committed Feb 6, 2024
1 parent dabb3c0 commit 522dbde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ for (const input of inputs) {

label.className = 'field-label';
label.htmlFor = input.id;
label.textContent = input.name;
label.textContent = capitalizeName(input.name.toUpperCase());

input.placeholder = capitalizeName(input.name);
input.parentNode.appendChild(label);
input.parentElement.append(label);
}

0 comments on commit 522dbde

Please sign in to comment.