开发者

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

开发者 https://www.devze.com 2023-02-04 04:14 出处:网络
If I select elements to enable jQ开发者_开发百科uery plugins like $(\".clickaway\").clickaway();

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号