I need to reset all the form fields in an HTML content I saved in a variable. I searched the internet and here too. But none of what I\'ve found has worked yet. It won\'t su
If you're using all textboxes:
for(c in document.getElementById('id_of_form').childNodes) { c.innerHTML = ""; }
If you're using multiple things, replace childNodes with getElementByTagName("name of tag") and filter with type.