Custom JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Custom JavaScript

How do you remove a field from a website contact us page?

31st Aug 2018, 4:13 PM
Troy-lynn Major
Troy-lynn Major - avatar
1 Answer
+ 1
// to hide the first input field document.querySelector("input").type = "hidden"; // to hide the n+1 th input field document.querySelectorAll("input")[n].type = "hidden";
31st Aug 2018, 4:54 PM
Calviղ
Calviղ - avatar