---
title: "Discussion on \"How to select HTML Elements in JavaScript.\" | Hashnode"
description: "Discussion on \"How to select HTML Elements in JavaScript.\". In this blog post, we will see the most common ways to select HTML elements using JavaScript.\nTo add  functionality to Html first we need to get all the required elements in our JavaScript file.\n\nSelecting Elements by ID\n\n\ngetElementById() :  getElem..."
url: "https://hashnode.com/posts/how-to-select-html-elements-in-javascript/61ae282d4389d636ce8b9c1a"
---

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

Discussion

# [How to select HTML Elements in JavaScript.](https://lokesh005.hashnode.dev/how-to-select-html-elements-in-javascript?utm_source=hashnode&utm_medium=feed)

In this blog post, we will see the most common ways to select HTML elements using JavaScript. To add functionality to Html first we need to get all the required elements in our JavaScript file. Selecting Elements by ID getElementById() : getElem...

Dec 6, 2021 · 2 min read · lokesh005.hashnode.dev  
Read the article

## Written by

[LOKESH KHATI](https://hashnode.com/@Lokesh005)

@Lokesh005 · India , Uttarakhand

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

Frontend Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
