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 binding:
$('.group').fancybox();
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.
jQuery(document). ready(function($) { $('button'). on('click', function() { $. fancybox(); }); });
Here is the code: if ($('div#fancybox-frame:empty'). length >0) { alert('it is empty'); $.
fancybox is designed to display images, video, iframes and any HTML content. For your convenience, there is a built in support for inline content and ajax. Images.
$('.group').unbind('click.fb')
You can add class "nofancybox" to link and this link will be ignored
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With