- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I split this into multimuple lines but you could likely do it in one if you prefer
var sometext = this.rawValue;
sometext = sometext.toLowerCase();
this.rawValue = sometext.replace(/\b([a-z])/g, function (_, initial) {return initial.toUpperCase();});
Views
Replies
0 Likes
Total Likes