Javascript name validation

后端 未结 3 1195
隐瞒了意图╮
隐瞒了意图╮ 2021-01-23 08:03

I have a javascript function written to validate a field on my form. This function is supposed to make sure the field is not empty, does not exceed the limit of 35 characters an

3条回答
  •  余生分开走
    2021-01-23 08:24

    Try to rename submit button, rid of id and name "submit" (rename to "doSubmit" or smth), it can cause problems and conflict with event "submit" of form.

提交回复
热议问题