title: How to get the drawn rectangle element in Raphael?
body: <p>I want to know what is the way of getting elements drawn using the Raphael.js.I tried with getById but it is not at all working.Please help me to overcome this issue.</p>
  
  <p>//When the user clicks on the circle i am getting the Circle ID and wants to get the //rectangle which is also having the same ID as Circle but with different prefix.</p>
  
  <pre><code>function addCircleClick(obj)
  {
      obj.click(function(event)
      {
          alert(paper+" getRect ID 1"+this.id);.
          var getRect; 
          try
          {
              var getRect  = paper.getById(this.id);////This below line(paper.getById(this.id)) is not working,even Circle object i am not able  to get
          }
          catch(e)
          {
              alert(e);//Issue here
          } 
          alert("getRect ID 2 "+getRect); 
          obj.attr({"stroke":"red"});  
      });
  }       
  </code></pre>