From bf99c17371f48f59f3355f22b93c7317c7771590 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 29 Dec 2017 00:01:19 +0200 Subject: [PATCH] Update hide.md --- snippets/hide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/hide.md b/snippets/hide.md index e8024ddb9..b19486df4 100644 --- a/snippets/hide.md +++ b/snippets/hide.md @@ -9,5 +9,5 @@ const hide = (...el) => [...el].forEach(e => e.style.display = 'none'); ``` ```js -hide(document.querySelector('img')); // Hides all elements on the page +hide(document.querySelectorAll('img')); // Hides all elements on the page ```