---
title: "Discussion on \"How to select all checkboxes in javascript\" | Hashnode"
description: "Discussion on \"How to select all checkboxes in javascript\". Have you ever wondered how a single checkbox is used to select all other checkboxes?\nwell, in this tutorial you will learn how to create that with just few lines of javascript.\nlet's begin, first let's create our HTML file\n<div class=\"main-container\"..."
url: "https://hashnode.com/posts/how-to-select-all-checkboxes-in-javascript/5fddeb54b78ac62dff80c614"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to select all checkboxes in javascript](https://stevecodes.hashnode.dev/how-to-select-all-checkboxes-in-javascript?utm_source=hashnode&utm_medium=feed)

Have you ever wondered how a single checkbox is used to select all other checkboxes? well, in this tutorial you will learn how to create that with just few lines of javascript. let's begin, first let's create our HTML file <div class="main-container"...

Dec 19, 2020 · 3 min read · stevecodes.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Lucky Victory Success](https://hashnode.com/@LuckyVictory)

@LuckyVictory · Nigeria

  
[View profile](https://hashnode.com/@LuckyVictory)

Writer and frontend Developer.

A frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
