jquery validator plugin with display:none form elements

前端 未结 5 1488
囚心锁ツ
囚心锁ツ 2020-12-15 17:01

I\'m using the validator plugin found here to validate a form.

Problem I\'m having is if I put the following around a form input element the validation fails:

<
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 17:56

    There are two things you can do.

    1) you can statically set value, which does not fail validation, for this input field like

    2) If you want to neglate this value in your validation method.

    I would appreciate if you could provide more detail code.

提交回复
热议问题