var obj =$("#mytableid :input[type='hidden'][name='enterpriseid']", parent.document); obj.each(function(i){ console.log(this.value); });