Been lurking and searching on the site for years, but I have come across an issue I can't seem to figure out.
I am creating a (very simple) coloring book for my daughter. I have been able to nail down coloring a single picture (SVG). I am trying to give her multiple pictures to color. What would be the best method to load a new SVG, path and all, within a div when she click an image below the main canvas? I have put the SVG code inline and have called it by using PHP. Both seem to work for the initial page load but I can't get the secondary load to work.
Here is my attempt - https://jsfiddle.net/shockey8oz/LL9048kg/
$('.thumb').click(function() {
var choice = $(this).attr('id');
$('.canvas').load('http://www.shockeyfamily.org/final/' + choice + '.svg');
});
Thanks, Shockey8oz