Revision: 61443
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 13, 2012 05:27 by mattvbiggs
Initial Code
// "inputfields" is the id of the div that contains the text fields. $('div[id=inputfields] input[type=text]').val("");
Initial URL
Initial Description
This can come in handy for a reset or cancel button. You can clear all inputs within a single div in one line of code. Pretty sexy.
Initial Title
jQuery: Clear All Text Fields (with one line of code)
Initial Tags
text
Initial Language
jQuery