I have this thing I m trying to do. I have a main picture of a map and within that map there are regions. These regions have hot spots on them so you can click them and it w
You can use .replaceWith()
$(function() { $(".region").click(function(e) { e.preventDefault(); var content = $(this).html(); $('#map').replaceWith('' + content + ''); }); });
region1 region2 region3