herr-schuessler.de
Submitted by: Christoph Schuessler

Selecting Input Fields with MaxLength via jQuery

Different browsers behave differently when it comes to defining the maxlength of input elements that don’t really have a maxlength. This can pose problems when trying to select elements with JavaScript based on the maxlength attribute. This article delves into the mathematics of it all and shows a solution via jQuery.

direct link