---
title: "Discussion on \"Vanilla JavaScript get all elements in a form\" | Hashnode"
description: "Discussion on \"Vanilla JavaScript get all elements in a form\". If you ever made your own validation you will understand the struggle of getting all the form elements.\nI've made code that would loop over each type of input as such:\ntypes = ['input', 'select', 'texture'];\n// Manually loop and get all those\n\nThat w..."
url: "https://hashnode.com/posts/vanilla-javascript-get-all-elements-in-a-form/5fec17a6017ebb59232da632"
---

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

Discussion

# [Vanilla JavaScript get all elements in a form](https://h.daily-dev-tips.com/vanilla-javascript-get-all-elements-in-a-form?utm_source=hashnode&utm_medium=feed)

If you ever made your own validation you will understand the struggle of getting all the form elements. I've made code that would loop over each type of input as such: types = \['input', 'select', 'texture'\]; // Manually loop and get all those That w...

Dec 30, 2020 · 3 min read · h.daily-dev-tips.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)
-   [#forms](https://hashnode.com/tag/forms)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

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

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
