views:

38

answers:

1

I have a form that has several optional fields. they are rendered as input type="text" input elements. Here is the html:

<input type="text" name="AssistanPhone" value="" maxlength="50"  />

The jquery validation plugin fails validation on this field when the maxlength attribute is set. I don't even want to validate this field. No rules are set for this field. If I remove the "maxlength" attribute it works just fine. I know there is a validation plugin property you can set for maxlength, but I am trying to avoid using that.

Thanks

A: 

can I take a look on the script and the form?... it's hard to notice the problem when all i can see is just this

<input type="text" name="AssistanPhone" value="" maxlength="50"  />
Reigel