/ Published in: jQuery

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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// "inputfields" is the id of the div that contains the text fields. $('div[id=inputfields] input[type=text]').val("");
Comments
