I have a div that needs to be identified using a line and box(which will contain a message) like in the below mockup image.2 and 3(Line and a rectangular box) are fixed to each
Better you can use a plugin for this
https://anseki.github.io/leader-line/