Reet Reet - 8 months ago 74
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) ?


You can validate with javascript like this:

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

from here