I am no sure whether I made the question title right, but I want to ask a question below
<div title="A"></div>
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]'
I am not asking for a.attr('title');
You can use
selectorproperty in jQuery object to get the selector that was used.DEMO: http://jsfiddle.net/Zz4MW/
Note: Use
selectorproperty with caution as it is for internal usage. See Why does the .selector property in jQuery not store a valid selector value? for more information.