To clear input elements as indicated elsewhere:
$("#RegexInsert .inputs").val('');
In reset the values of the input elements:
$("#RegexInsert .inputs").val(function(){
return this.defaultValue;
});
Or, if you have several types of input (and this, frankly, is more complicated than I initially expected it to be ...):
$('#reset').on('click', function(e){
e.preventDefault();
$('input, textarea, select option')
.each(function(){
var tag = this.tagName.toLowerCase(),
type = this.type,
prop, value;
if ('undefined' !== typeof type) {
switch (type) {
case 'radio':
case 'checkbox':
prop = 'checked';
break;
case 'text':
case 'textarea':
prop = 'value';
break;
}
}
else {
switch (tag) {
case 'option':
prop = 'selected';
break;
case 'textarea':
prop = 'value';
break;
}
}
this[prop] = this['default' + prop.replace(/^./,function(a){
return a.toUpperCase();
})];
});
});
JS Fiddle demo.