js, How to get selector from element
<p>I am no sure whether I made the question title right, but I want to ask a question below</p>

<pre><code>&lt;div title="A"&gt;&lt;/div&gt;

var a = $([title=A]);

//if I only know a, how can I get what is referring here made a, 
//or command I use can get out put of the referring. 
//This case the out put will be '[title=A]'
</code></pre>

<p>I am not asking for <code>a.attr('title');</code></p>
