$('input').filter(function(){return this.name.match(/schoolname/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/locationname/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/street/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/housenumber/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/housenumbersupplement/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/postalcode/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/city/);}).val('').trigger("change"); $('input').filter(function(){return this.name.match(/normalizedschoolid/);}).val('').trigger("change");