Search code examples
androidandroid-4.2-jelly-bean

Not able to use maxlength in Android JellyBean


I am facing an issue in Android which is like whenever I am using the maxlenth attribute on input e.g. ; After entering 20 characters on android tab, that page gets hang, I am unable to delete anything or add anything in any other input, other pages works fine but not this page where I entered the charcters upto max limit

I am using on KArbonn Smart Tab 8 Android JellyBean


Solution

  • It is a well known Android 4.1 issue.

    Jelly Bean WebView not working well with HTML maxlength attribute for text box

    http://code.google.com/p/android/issues/detail?id=35264

    Unfortunately, no fix yet. You can follow the above stack-overflow post where they have a JS fix.