maxlength not working on Android Chrome |
maxlength not working on Android Chrome |
Terminator |
Sep 20 2016, 12:10 AM
Post
#1
|
Advanced Member Group: Members Posts: 218 Joined: 19-March 15 Member No.: 22,398 |
the HTML5 maxlength for text fields does not work for Chrome on Android Phones and Tablets, it works fine on Desktop Chrome though. If you do something like maxlength="10" the user can type in more that 10 characters if they want. This is for input type="text"
Anyway to prevent this by adding extra JavaScript code? thanks |
Christian J |
Sep 20 2016, 07:32 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Apparently Chrome and other Android browsers differ wildly in general: http://slides.com/html5test/the-android-browser#/ (warning for 48-page, javascript-dependent slideshow ).
Maybe some basic javascript will fix it, as long as the fix doesn't conflict with MAXLENGTH in devices that support it, and so on. |
Lo-Fi Version | Time is now: 25th April 2024 - 12:44 PM |