Managed Hosting



CFJS (ColdFusionJavaScript for jQuery)
Project Home Wiki Known Issues External Project Link Contact Project

CFJS (ColdFusionJavaScript for jQuery) Issue: Need a PCase()

Name: Need a PCase()
ID: 19
Project: CFJS (ColdFusionJavaScript for jQuery)
Type: Enhancement
Area: Administration
Severity: Low
Status: Open
Related URL:
Creator: John Farrar
Created: 01/10/14 2:37 PM
Updated: 01/10/14 2:37 PM
Description: Yes, I know there is no PCase, but there is an LCase and an UCase.

   PCase: function(s){
      var retString = s.toLowerCase().replace(/^(.)|\s(.)/g, function($1) { return $1.toUpperCase(); });
      return retString;
History: Created by johnfarrar (John Farrar) : 01/10/14 2:37 PM

To add a comment to this bug, please login using the link above.