Form http://www.sharejs.com/subject/428
function ReplaceFirstUper(str)
{
str = str.toLowerCase();
return str.replace(/\b(\w)|\s(\w)/g, function(m){
return m.toUpperCase();
});
}
Form http://www.sharejs.com/subject/428
function ReplaceFirstUper(str)
{
str = str.toLowerCase();
return str.replace(/\b(\w)|\s(\w)/g, function(m){
return m.toUpperCase();
});
}