Link to home
Start Free TrialLog in
Avatar of rutledgj
rutledgj

asked on

Handling case and special names in javascript

I need some code to do a propercase to names and addresses using javascript.  I also need it to handle names like O'Neil  or McDonald (the special cases in other words).

I found some code to do propercase but it does not handle the special names like those I just listed.
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

I found this github project that does this:
https://github.com/tamtamchik/namecase

where you would have 2 options:
* convert that yourself into pure javascript
* use the php file to call it from your javascript
Avatar of rutledgj
rutledgj

ASKER

Unfortunately I don't know enough about php to even know what files to look in. I also do not know how to call php code from javascript.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial