Javasript does not support toProperCase function in String object. So, someone has written a simple code like that:
function toProperCase(s)
{
return s.toLowerCase().replace(/^(.)|\s(.)/g,
function($1) { return $1.toUpperCase(); });
}
For more information, go to this link http://www.codeproject.com/KB/scripting/propercase.aspx
Comments
Post a Comment