Surya Kant

Surya Kant

  • 635
  • 1.6k
  • 642.6k

How to draw a connecting line between two div ?

Aug 19 2016 8:06 AM

Hii all;

I want to draw line between two div like like this http://jsfiddle.net/URWru/ ,

But their they uses canvas to draw a line; but i want that same line by using normal html div.

for eg :- I have a div when i click inside the div then a line start from their and when i mouse move then line will increase width (like the above Link http://jsfiddle.net/URWru/) and when my mouse pointer on other div and i click mouse button then the two div connected by that line.

Note :- without using any plugin manually through java script.

Is it possible to do this?

Please suggest me ?

Thanks;


Answers (2)