title: How to change Raphael text element with jQuery?
body: <p>I created a text element:</p>
  
  <pre><code>var gcText = paper.text(textPosX, textPosY, "myText");
  gcText.attr({"text-anchor":end});
  gcText.node.id = "myObject";
  </code></pre>
  
  <p>After loading the page I use some JS jQuery commands for modifying some elements and I also want to update the text. I already found these posts:
  <a href="https://stackoverflow.com/questions/2172618/how-to-modify-raphael-text">How to modify raphael text?</a> and
  <a href="https://stackoverflow.com/questions/3490092/changing-text-in-raphaeljs">Changing text in RaphaelJS</a>
  ... and tried this:</p>
  
  <pre><code>$('#myObject').attr("text","new text");
  </code></pre>
  
  <p>But had no luck with it! These commands change the text attribute inside the svg-text element, but not the text I can see on the page. Now I found out that there is a tspan-element inside the generated SVG:</p>
  
  <pre><code>&lt;text id="myObject" [...] text="new text"&gt;&lt;tspan dy="3.5"&gt;myText&lt;/tspan&gt;&lt;/text&gt;
  </code></pre>
  
  <p>I can only see the "myText" and not the text from the text-attribute ("new text").
  How can a change this text through jQuery commands?</p>