I've been tasked with creating the core aspects of a job site, and I've written a script to add/remove form elements from the search form based off their ID (i.e. I click a [-] next to a form input, the input is removed).
Now, I wan't to remove the element so that it doesn't post whatever value was previously contained before the [-] was clicked, so document.getElementById("something").style.display = "none"; won't cut it here.
An alternative would either be something that completely removes that form element, or something that stops it from posting so I can then hide it.
Unfortunatley 20 minutes of Googling hasn't returned what I'm looking for.
Could anyone point me in the right direction here please?