---
title: "Discussion on \"Allow to enter particular characters only\" | Hashnode"
description: "Discussion on \"Allow to enter particular characters only\". Sometimes we want to make validations on an input box for characters that user can type. And other characters will not be entertained in the input box.\n\nQuestion: Make a input box that accepts digits and spaces only. Also, care for copy-paste (Ctrl +..."
url: "https://hashnode.com/posts/javascript-dom-allow-to-enter-particular-characters-only/62cdbb6d24f934c8169854ae"
---

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

Discussion

# [Allow to enter particular characters only](https://aniketjha.dev/javascript-dom-allow-to-enter-particular-characters-only?utm_source=hashnode&utm_medium=feed)

Sometimes we want to make validations on an input box for characters that user can type. And other characters will not be entertained in the input box. Question: Make a input box that accepts digits and spaces only. Also, care for copy-paste (Ctrl +...

Jul 12, 2022 · 3 min read · aniketjha.dev  
Read the article

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

## Written by

[Aniket Jha](https://hashnode.com/@vtechguys)

@vtechguys · Delhi, India

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

Late Night Coder

I’m a software ninja 🥷 who loves abstractions and spread functional programming everywhere. I've over 2 years of experience and I'm based in Delhi, India🇮🇳

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
