title: Draw a bendable arrow between two html elements
body: <p>I am developing a view for some items in my web site. Currently I have the items displayed in the HTML but now I need to draw some lines between the elements that will represent a connection between them, it's like a Gantt Chart but it doesn't include any time functionality, I only need to connect the items with the ones associated to them. I'm using JSTL to bring some data from a controller and I managed to draw the elements like the following image: <a href="http://i271.photobucket.com/albums/jj131/djrickel/before.png" rel="nofollow">http://i271.photobucket.com/albums/jj131/djrickel/before.png</a></p>
  
  <p>And the way I need to display is in the following image:
  <a href="http://i271.photobucket.com/albums/jj131/djrickel/after.png" rel="nofollow">http://i271.photobucket.com/albums/jj131/djrickel/after.png</a></p>
  
  <p>This is how I'm creating my table containing the elements that I want to display:</p>
  
  <pre><code>    &lt;div class="container"&gt;
          &lt;table&gt;
              &lt;tbody&gt;
                  &lt;c:forEach items="${nodeGraphs}" var="nodeGraph"&gt;
                      &lt;tr&gt;
                          &lt;c:forEach var="i" begin="0" end="5"&gt;
                              &lt;td&gt;
                                  &lt;c:if test="${nodeGraph.columnID == i}"&gt;
                                      &lt;label class="label label-default"&gt;${nodeGraph.nodeObject.item.type}${nodeGraph.nodeObject.item.contextId}&lt;/label&gt;
                                  &lt;/c:if&gt;
                              &lt;/td&gt;
                          &lt;/c:forEach&gt;
                      &lt;/tr&gt;
                  &lt;/c:forEach&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;  
  </code></pre>
  
  <p>Does anyone know a way to create connecting lines between the elements using JQuery, JSon, Javascript or any HTML process? I can change from the table I'm using to div or span without any issue. I'm just looking the best way to display the information. Thanks in advance.</p>