Created
March 13, 2013 20:50
-
-
Save netsi1964/5156020 to your computer and use it in GitHub Desktop.
Javascript: various javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function camelCase(selector) { | |
var cc = ''; | |
[].forEach.call(document.querySelector(selector).value.split(' '), function(e) { | |
cc+=e.substr(0,1).toUpperCase()+e.substr(1,200).toLowerCase(); | |
}); | |
return cc; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment