Top Ad unit 728 × 90

Enter Only Numbers and without Decimal Values Using jQuery

This numbersonly class can be used in input box where this class allows only numbers and it doesn't allow decimal

    $("input.numbersonly").keypress(function(event) {
             return /\d/.test(String.fromCharCode(event.keyCode || event.which || event.charCode));
    });
Enter Only Numbers and without Decimal Values Using jQuery Reviewed by Ashok Sen on 01:39:00 Rating: 5

No comments:

Website Design Company at Kolkata All Rights Reserved © 2014 - 2019
Developed by Asenwebmedia

Contact Form

Name

Email *

Message *

Powered by Blogger.