maxlength with an input field?
-
I have just added the maxlength=x attribute to an input field but it does not work.
Do i have to relay on an extra plugin for form validation?
-
@qroft I think it works: https://codepen.io/frankdiox/pen/mPYRVv?editors=1000
-
thanks for your help. but it doesn’t work when i use type attribute as number. is there any way to solve it please ?
-
@meisam3322 That’s how HTML5 works. But Google and SOF have a bunch of solutions for you.