---
title: "Discussion on \"Getting value from user input (input field) after clicking button\" | Hashnode"
description: "Discussion on \"Getting value from user input (input field) after clicking button\". Scenario\nWe have simple form in HTML with:\n\ninput field,\n\nbutton that is supposed to display an alert with text inputed in input field.\n\n\nSimple, right? No, hell not.\nAnalysis\nWhat?\nWe cannot just:\nlet v = document.getElementById('inputField').value;..."
url: "https://hashnode.com/posts/getting-value-from-user-input-input-field-after-clicking-button/63a1e4788f4cf93140d7d13d"
---

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

Discussion

# [Getting value from user input (input field) after clicking button](https://furiousdev.hashnode.dev/getting-value-from-user-input-input-field-after-clicking-button?utm_source=hashnode&utm_medium=feed)

Scenario We have simple form in HTML with: input field, button that is supposed to display an alert with text inputed in input field. Simple, right? No, hell not. Analysis What? We cannot just: let v = document.getElementById('inputField').value;...

Dec 20, 2022 · 1 min read · furiousdev.hashnode.dev  
Read the article

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

## Written by

[Wojtek X](https://hashnode.com/@wojtekxtx)

@wojtekxtx

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

js

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
