最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - draw line with jquery between two divs - Stack Overflow

programmeradmin6浏览0评论

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.

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.

Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Oct 9, 2011 at 22:56 user969068user969068 2,9436 gold badges35 silver badges69 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

i found https://github./jsplumb/jsplumb to solve this issue..

发布评论

评论列表(0)

  1. 暂无评论