+ 1
Custom JavaScript
How do you remove a field from a website contact us page?
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";