Posted By

ryarwood on 06/22/11


Tagged

javascript html replace jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


jQuery HTML Replace


 / Published in: jQuery
 

Will populate #contentDiv with whatever is in the variable "content". Uses .html()

  1. content = "<h1>HTML CONTENT HERE</h1>";
  2. $("#contentDiv").html(content);

Report this snippet  

You need to login to post a comment.