Simplest JQuery validation rules example

前端 未结 4 1299
夕颜
夕颜 2020-12-29 09:05

The following HTML form successfully utilizes jQuery\'s form validation, displaying \"This field is required\" to the right of the form field if left blank, and \"Please ent

4条回答
  •  难免孤独
    2020-12-29 09:35

    The input in the markup is missing "type", the input (text I assume) has the attribute name="name" and ID="cname", the provided code by Ayo calls the input named "cname"* where it should be "name".

提交回复
热议问题