From d4f4a4e68c20217a6f7abef1ffb673249ae5300c Mon Sep 17 00:00:00 2001 From: Ivan Herhi Date: Wed, 5 Mar 2025 18:26:25 +0100 Subject: [PATCH] Last --- src/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/main.js b/src/scripts/main.js index 685a5042..feccf9e0 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -6,7 +6,7 @@ const arrayInputs = [...allInputs]; const field = body.querySelectorAll('.field'); arrayInputs.forEach((item) => { - const name = item.getAttribute('name') + let name = item.getAttribute('name') item.setAttribute('placeholder', name[0].toUpperCase() + name.slice(1)); });