M
M
Maxim Ivanov2016-08-04 15:37:15
JavaScript
Maxim Ivanov, 2016-08-04 15:37:15

How to work with svg elements with jQuery?

There is a canvas, I have to drag elements onto it, but so far I'm only dealing with svg in general
And I can't understand why it doesn't add a blue block:

https://jsfiddle.net/us9he7tg/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Risent Veber, 2016-08-04
@risentveber

https://habrahabr.ru/post/185750/

D
Denis Ineshin, 2016-08-04
@IonDen

If I were you, I would switch to D3.js. This library is specially made for manipulating SVG.
jQuery is superfluous in this scheme.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question