draw line with jquery between two divs

前提是你 提交于 2019-12-07 11:14:54

问题


how can I draw line between two div's with jquery library or simple javascript?

I have various div's boxes on page with there id's

id1 #id2 #id3 #id4 and #id5 and so on...

what I wants if I click on #div1 and drag it to #div2 It will make an arrow line between #div1 and #div2 pointing to 2, And somehow save this connection details. Also i can attach #div1 to other div's and it save that connection details as well.

(I am using jquery UI if that matters).

Thanks for any help.


回答1:


i found http://jsplumb.org/ for this purpose.



来源:https://stackoverflow.com/questions/7707127/draw-line-with-jquery-between-two-divs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!