/ Published in: jQuery
![](/img/icon_sav.png?v3)
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
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)