var data = {}; obj.find("input,select,textarea").each(function() { if(this.id!="") data[this.id] = $(this).val(); });