Wednesday, March 11, 2009

setAttribute('maxlength', 5);

Setting maxlength with Javascript using the setAttribute() function will not work with IE like this: setAttribute('maxlength', 5);

You have to make it setAttribute('maxLength', 5);

No comments: