Jiew Meng
Jiew Meng

Reputation: 88197

jQuery Plugin: Can I get the selector that was used to select elements

If I select elements to enable jQuery plugins like

$(".clickaway").clickaway();

Can I somehow get the selector .clickaway that was used in the plugin?

Upvotes: 1

Views: 985

Answers (2)

Agent_9191
Agent_9191

Reputation: 7253

I'm sure you would have noticed it digging into the object using Firebug, but just the .selector property of the jQuery object.

Upvotes: 3

simon
simon

Reputation: 16300

try:

$(".clickaway").clickaway().end()....

is that what you mean?

Upvotes: -1

Related Questions