Reputation: 2751
I currently have this code I've pieced together to accomplish drag and drop div
s with drawn lines connecting them.
However I don't want to have to use li
s at all.. I rather have it attached directly to the div
s (class circle
).
I'm not sure what I need to change to make that happen? Everything I try breaks it..
Thanks!!!!
Upvotes: 1
Views: 48
Reputation: 670
You just don't need the inner loop (each).
The source Included the lines that begins it's stroking from the middle of the element. http://jsfiddle.net/GnY34/2/
Upvotes: 1
Reputation: 129792
Just update "li"
to "div"
in your updateCanvas
function.
$("div", this).each(function() {
Upvotes: 1