I have searched over the web can can\'t find anything to help me. I want to make the first letter of each word upper case within a variable.
So far i have tried:
You can use text-transform: capitalize;
for this work -
HTML -
JQuery -
$(document).ready(function (){
var asdf = "WERTY UIOP";
$('input').val(asdf.toLowerCase());
});
Try This
Note: It's only change visual representation of the string. If you alert this string it's always show original value of the string.