Similar Question:
How to Convert a String into Pascal Case (UpperCamelCase) in JavaScript
I am working on some basic tasks here, so please be patient.
My current task involves using an XHTML text input to collect a user's name. I then display an alert message using JavaScript. Although I have applied text-transform: capitalize;
to capitalize the first letters of the user's names, JavaScript still reads the original entry without taking this styling into account.
What is the simplest solution I can implement to ensure that the alert message is also capitalized in the same way? I would prefer a concise code explanation for easier understanding :)
Thank you