当前位置: 动力学知识库 > 问答 > 编程问答 >

validation - Parse and Validate Fullname field?

问题描述:

Is there a client-side library/plugin, which would validate a Fullname input field (last name required)? I am changing fistName and lastName fields into FullName field.

It should also parse the field into first and last names, e.g:

John - invalid

John Smith - valid

John Smith Jr - valid

John Long Smith Jr - valid

Mr John Long Smith Jr. ??? what are first and last names?

etc

I am using parsley.js, but it doesn't parse full names into the first and last names.

网友答案:

I may just found an answer to my own question:

https://github.com/joshfraser/JavaScript-Name-Parser

分享给朋友:
您可能感兴趣的文章:
随机阅读: