I want to remove a field from a form and not hide it because I want the form to retract when I hide the fields my form stays "wide" which is an aesthetic problem.
document.getElementById('test_field').style.visibility = "hidden";
it works but the form remains large (it only does the hidden)
I tried that but it doesn't work
document.getElementById("test_field").style.display = "none";