I"t(function() { $(function() { return $("button.reset").click(function() { var form; form = $(this).parents("form"); form.find("option").map(function() { if (this.value === "") { return this.selected = true; } }); form.find("input").map(function() { if (!this.type.match(/submit|hidden|button/)) { return this.value = ""; } }); form.find("textarea").val(""); return form.find("select").map(function() { if (this.selectize) { return this.selectize.clear(); } }); }); }); }).call(this); :ET