---
layout: post
title: "Javascript Validator for Input Number"
date: 2016-04-26 04:19:22 +0700
categories: [others]
---
This javascript will validate/allow the number only when event key is pressed.
For example result of it:
tutorial above, when you can not directly add the attribute inside html tag.
but if you can add it, you can following this bellow:
{% highlight html %}
{% endhighlight %}
hope it usefull.