Note that ARIA is an independent specification that's not specifically related to HTML5.
If you need to add jquery validation for your textbox like textbox should accept only numbers values on keypress event.
In Empno textbox,we have to avoid typing alphabets.
However, this doesn't disable support for the constraint validation API nor the application of the CSS pseudo-class or other As you can see, the HTML is almost the same; we just removed the HTML validation features.
I personally use regular expressions for such kind of tasks.
Make a regular expression for non digit characters and search for that pattern in your string.
We have to be very careful here not to get carried away, creating overly aggressive validation that breaks the natural browsing behavior and gets in people’s way.
For example, I’ve seen forms where it’s impossible to ) to force the focus to stay inside the field until it’s valid.