---
title: "Discussion on \"Vanilla JavaScript get form element's form\" | Hashnode"
description: "Discussion on \"Vanilla JavaScript get form element's form\". Wow, weird title, but we want to get a form in which a specific element is sitting.\nWe could use closest() or parent(), but for form elements we can even make it simpler!\nWe can use the .form on these elements.\nTo demonstrate I'm going to showcase tw..."
url: "https://hashnode.com/posts/vanilla-javascript-get-form-elements-form/5fe4187addcb940a6d28d314"
---

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

Discussion

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

Wow, weird title, but we want to get a form in which a specific element is sitting. We could use closest() or parent(), but for form elements we can even make it simpler! We can use the .form on these elements. To demonstrate I'm going to showcase tw...

Dec 24, 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.
