# Input Field: Restrict to Numbers INCLUDING space?

**URL:** https://forum.kirupa.com/t/input-field-restrict-to-numbers-including-space/144898
**Category:** Uncategorized
**Created:** [April 18, 2005, 11:11am UTC](https://forum.kirupa.com/t/input-field-restrict-to-numbers-including-space/144898 "2005-04-18T11:11:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DESIGN\_GEEZER](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@DESIGN\_GEEZER](https://forum.kirupa.com/u/DESIGN_GEEZER)
#### Post date: [April 18, 2005, 11:11am UTC](https://forum.kirupa.com/t/input-field-restrict-to-numbers-including-space/144898/1 "2005-04-18T11:11:20Z")

</div>

Hi all, I’m trying to make an input box restricted to characters 0-9 including the space bar.

I can do;

mytext.restrict = “0-9”;

but how do I account for space? any ideas or solutions would be greatly appreciated.
