diff --git a/_posts/2016-04-26-javascript-validator-for-input-number.markdown b/_posts/2016-04-26-javascript-validator-for-input-number.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..76979afc21cdc22971949b078dc39644ef015bea
--- /dev/null
+++ b/_posts/2016-04-26-javascript-validator-for-input-number.markdown
@@ -0,0 +1,28 @@
+---
+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.
+
+{% highlight html %}
+<input id="id_price" type="number" min=0 />
+<script type="text/javascript">
+function isNumber(evt) {
+    evt = (evt) ? evt : window.event;
+    var charCode = (evt.which) ? evt.which : evt.keyCode;
+    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
+        return false;
+    }
+    return true;
+}
+document.getElementById('id_price').setAttribute("onkeypress", "return isNumber(event)");
+</script>
+{% endhighlight %}
+
+
+For example result of it:
+
+<script async src="//jsfiddle.net/agaust/3qz105nn/embed/html,result/dark/"></script>
\ No newline at end of file
diff --git a/category/others.md b/category/others.md
new file mode 100644
index 0000000000000000000000000000000000000000..1ded01a8d59ada78af43de18bf4e4c0cd54dce18
--- /dev/null
+++ b/category/others.md
@@ -0,0 +1,6 @@
+---
+layout: posts_by_category
+categories: others
+title: Others
+permalink: /category/others
+---
\ No newline at end of file