title: How to select Fabric.js object programmatically
body: <p>I want to programmatically select Fabrics.js object. What do I have to do? For example, I am adding two objects like this:</p>
  
  <pre><code>var canvas = new fabric.Canvas('canvas');
  canvas.add(new fabric.Rect({
      left: 100,
      top: 100,
      width: 75,
      height: 50,
      fill: 'green',
      stroke: 'black',
      strokeWidth: 3,
      padding: 10
    }));
  
   canvas.add(new fabric.Circle({
      left: 200,
      top: 200,
      radius: 30,
      fill: 'gray',
      stroke: 'black',
      strokeWidth: 3
    }));
  </code></pre>
  
  <p>and I have two button while clicking the button named </p>
  
  <ol>
  <li>select rectangle</li>
  <li>select second object</li>
  </ol>
  
  <p>While clicking the select rectangle button it should select the rectangle shape and while clicking the select second object button it should select the second object circle.</p>
  
  <p>Here is the <a href="http://jsfiddle.net/E4QfM/">Jsfiddle</a> for workaround.</p>
  
  <p>I goggled and fed up, here I am seeking for some point how to start.</p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I like to have the ID for each object, it should be possible to select the object using that ID, why I am asking this is, while using the collaborative things we can't tell surely all the connected nodes will have the item in same index, so unique id will be useful.</p>