Skip to content

Instantly share code, notes, and snippets.

@bekapod
Created May 22, 2012 20:33
Show Gist options
  • Save bekapod/2771446 to your computer and use it in GitHub Desktop.
Save bekapod/2771446 to your computer and use it in GitHub Desktop.
JQUERY: Object literal to define properties when creating an element
var e = $("", { href: "#", class: "a-class another-class", title: "..." });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment