I'm just trying to replace the contents of a div with the new content associated with the click event.
JSFIDDLE
When I use appendTo() instead of html() , it works, but I need to clear the old content, so I'm a bit confused why this does not work, how it should do
jquery
Johnny000
source share