问题描述:

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

相关阅读:
Top