Witam, mam taki kod w JS :
var uchwyt= document.getElementById("new_input_1");
element= document.createElement("input");
element.setAttribute("name", "all_value_txt");
element.setAttribute("id", "all_value_txt");
element.style.border='1px solid red';
element.setAttribute("type", "text");
uchwyt.appendChild(element);
gdzies w bloku body jest
Problem w tym ze czepia sie uchwytu "new_input_1 has no properties"
Nie rozumiem tego przeciez istnieje w kodzie. Jak to rozwiazac ?