Skip to content

Instantly share code, notes, and snippets.

@rschmukler
Created April 4, 2013 00:17
Show Gist options
  • Save rschmukler/5306644 to your computer and use it in GitHub Desktop.
Save rschmukler/5306644 to your computer and use it in GitHub Desktop.
function populateAttributesFromObject(obj) {
$el.attr('name', obj['name'])
.attr('type', obj['type']);
... etc etc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment