Bit of a newbie here and probably out of my depth but I\'m looping over some imported xml and appending a container with a div and then appending that with a canvas, I\'m th
You need native DOM object to do it.
Try this;
var ctx = $("#theCanvas").get(0).getContext("2d");