I think in cases where the maxlength is going to cause the same limitation as setting max would, we don't need to set max. If it's maxlength of 4 they just wont be able to enter more than 9999. Now if it's going to be something like 100, then max="100" maxwidth="3" should be set. Thanks :)