JavaScript Dodaj wymagane do wejścia

element.setAttribute("required", "");

element.removeAttribute("required");
Fancy Fowl