Skip to content

Instantly share code, notes, and snippets.

@Bodacious
Created August 12, 2011 12:04
Show Gist options
  • Save Bodacious/1141918 to your computer and use it in GitHub Desktop.
Save Bodacious/1141918 to your computer and use it in GitHub Desktop.
jQuery .html()
$("#element").empty();
$("#element").append("Some text <span> With HTML </span>");
// is the same as
$("#element").html("Some text <span> With HTML </span>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment