This textbox allow numeric value only

What do I provide?

This is just a JS function toHtmlNumericInput(string, bool). Copy it to your page and that's all.

How to use

Call toHtmlNumericInput('num'); // by default, DOT is the decimalSeparator, you can type "123456.789"

Call toHtmlNumericInput('num', true); // if you want to use COMMA as decimalSeparator, you can type "123456,789"

A working sample and how to use in action is here on Github