}] $("[data-langs]").each(function(e) { var $this = $(this), langIndex = $(this).data('langs'); if ($this[0].nodeName === 'INPUT') { $this.data('placeholder', languageList[langIndex][LANGUAGE]) } else { $this.text(languageList[langIndex][LANGUAGE]) } }) }