title: Select a div by title with jQuery
body: <p>I have a webpage with a div which contains several other divs WITHOUT an ID associated to them: </p>
  
  <pre><code>&lt;div id="container"&gt;
  &lt;div   title ="jhon" style=" position:absolute; left: 821px; top: 778.44px; width:8px; height:9px; z-index:3;"&gt; &lt;/div&gt; 
  &lt;div   title ="carl" style=" position:absolute; left: 561px; top: 579.88px; width:8px; height:9px; z-index:3;"&gt; &lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to be able to search one of these div by title and then access its style attributes such as left and top.</p>
  
  <p>I am using jQuery but I have no idea on how to select an element by name. I've tried something like:  </p>
  
  <pre><code>var c =$('div[title~="john"]');
  alert(c);               //I get [object Object]
  alert(c.style.left)     // throws an error and is undefined
  </code></pre>
  
  <p>but it seems not to work.</p>
  
  <p>Any help?</p>