Clearing Form Data
A question I often hear is, “How do I clear a form?” Initially the answer seems very straightforward – a one-liner in jQuery: $('form :input').val(""); But upon closer examination we find that this is a bad way to solve the problem. When someone says they want to “clear a form” what they really mean is […]

