JavaScript Removing Contents Of Form Hidden By Animatedcollapse.hide
I'm using JavaScript to hide and show div contents within a simple web form I made. However, I noticed that the submitted form (it sends the form as a dictionary to Python CGI) may
Solution 1:
With jQuery, you can make DOM manipulation both easy and elegant.
For your needs, you can remove hidden input elements before submitting: http://jsfiddle.net/tTzn2/.
$("form").submit(function() {
$(this).find(":hidden").remove(); // hide hidden elements before submitting
});
Post a Comment for "JavaScript Removing Contents Of Form Hidden By Animatedcollapse.hide"