The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> maxlength not working on Android Chrome
Terminator
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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 wacko.gif ).

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. unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 12:44 PM