html - get jquery plugin targeted object DOM -


to honest i'm not sure how technically ask current need, i'll try show using pseudo code.

i'm building jquery plugin , need return 'targeted element's dom' - this:

plugin usage:

$('div.targeted-dom-element').myplugin();

and inside plugin want return/reuse somewhere 'div.targeted-dom-element' string (not object please!) - there jquery/js built-in function such thing?

edit: property deprecated, matt pointing out.

jquery objects has selector property can like

myjqueryobj.selector 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo