如何从选择器解除fancybox的绑定 [英] How to unbind fancybox from a selector

查看:77
本文介绍了如何从选择器解除fancybox的绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有类的锚链接,用于标识要在fancybox上调用的类。
例如:

I have an anchor link with a class which identifies it to be called on fancybox. example:

<a class="group">some code here</a>

Fancybox绑定:

Fancybox binding:

$('.group').fancybox();

如果我想用$('。group')选择的元素取消绑定fancybox,我该怎么办?去做?
我试过 removeClass('group')但它无效。

If I want to unbind fancybox with elements selected by $('.group'), how should I do that? I have tried removeClass('group') but its not working.

推荐答案

$('.group').unbind('click.fb')

这篇关于如何从选择器解除fancybox的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆