change contents of element jquery code example Example: how to set the contents of a div with jquery $("#yourID").html("");