Skip to content

Instantly share code, notes, and snippets.

@netsi1964
Created March 13, 2013 20:50
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netsi1964/5156020 to your computer and use it in GitHub Desktop.
Save netsi1964/5156020 to your computer and use it in GitHub Desktop.
Javascript: various javascript
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