@Retooo: Zacs post is, if you want to transcript your jquery/javascript to CFML the more accurate answer. That is exactly why I love CFML that much: You have different ways in CFML to whatever you want… Do you have more experience with dot.notated functions in script? Or do you like to use cf-tags? And if you want to do the best of both, doing cfml islands in Lucee is a great way, just like ben nadel posted recently in this forum and his blog. And there is even more possible in Lucee. CFML in Lucee is real fun!
I mainly go that approach to avoid repeated list functions, obviously in this case it’s doesn’t make much difference performance wise, but any time you work with a (longer) list, it’s going to perform better if you just create an array and then work with the array, otherwise, the list gets reparsed over and over again
I’m not a Lucee developer, but I saw this topic and thought I’d share the solution that I use when it comes to parsing names, I’ve had success using these two (2) java libraries:
I’ve also used this javascript version on the client-side to provide Microsoft Outlook-like name parsing from a single input field.