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.
I found some code to do propercase but it does not handle the special names like those I just listed.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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