From c6da290adf47760a4d9bc4f3256ce320b89c753d Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 8 Feb 2021 22:30:15 +0200 Subject: [PATCH] Update javascript-query-selector-shorthand.md --- blog_posts/javascript-query-selector-shorthand.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog_posts/javascript-query-selector-shorthand.md b/blog_posts/javascript-query-selector-shorthand.md index 1359f3a7f..295ba7161 100644 --- a/blog_posts/javascript-query-selector-shorthand.md +++ b/blog_posts/javascript-query-selector-shorthand.md @@ -14,7 +14,7 @@ const $ = document.querySelector.bind(document); const $$ = document.querySelectorAll.bind(document); const mainContent = $('.main-content'); -const externalLinks = $('a[target="_blank"]'); +const externalLinks = $$('a[target="_blank"]'); ``` **Image credit:** [engin akyurt](https://unsplash.com/@enginakyurt?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)