I have an input text-field and I want to hide it after the user hits the submit button. I have all the code ready for this but I can't seem to find a code that will hide a text input field without deleting it. How would I hide it? Thanks. ~imozeb
<input id="yourName" name="yourName" value="John" /> ... document.getElementById("yourName").style.display = "none";
<input type="hidden" name="yourName" value="yourValue" /> looks like the most suitable solution without even using javascript