jQuery Plugin: Can I get the selector that was used to select elements
If I select elements to enable jQ开发者_开发百科uery plugins like
$(".clickaway").clickaway();
Can I somehow get the selector .clickaway
that was used in the plugin?
I'm sure you would have noticed it digging into the object using Firebug, but just the .selector property of the jQuery object.
try:
$(".clickaway").clickaway().end()....
is that what you mean?
精彩评论