Skip to content

Instantly share code, notes, and snippets.

@kellysutton
Created August 17, 2011 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellysutton/1152559 to your computer and use it in GitHub Desktop.
Save kellysutton/1152559 to your computer and use it in GitHub Desktop.
Death to the +=
var createMyWrappedInput = function (defaultValue) {
var wrappedInput = "<div class='Wrapper'>";
wrappedInput += '<input type="text" value="' + defaultValue + '"/>';
wrappedInput += '</div>';
return wrappedInput;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment