document.querySelectorAll('.en-t').forEach(function(el){ el.style.display='none'; }); document.querySelectorAll('.ar-t').forEach(function(el){ el.style.display ...