$.fn.extend({ resetForm: function() {
	return this.each(function() {
		$this = $(this);
		if($this.is("form")){ //container is a form
			this.reset();
		}
		else{
			$("form", $this).each(function() { //iterate through each form in the container
				this.reset();
			});
		}
	});
} });