Reet Reet - 1 year ago 165
Javascript Question

Numeric textboxes in MVC

Is there any way to have a feature like a Numeric textbox in MVC which has all the validations in place(Do not want to use Kendo as it has all kinds of Validation probblems) ?

Answer Source

You can validate with javascript like this:

function isNumber(n) {
    return !isNaN(parseFloat(n)) && isFinite(n);

from here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download