How to unbind Facebox?
I have an anchor like below
<a href='...' rel='facebox'>..</a>
and use facebox like
$('#...').facebox();
But I need to unbind facebox() event dynamically, I tried the two ways as follows
$('#..开发者_C百科').unbind('facebox');
$('#..').unbind('keydown.facebox');
But both don't work.
Who can help me out... ?
Thanks.
Try:
$('#...').unbind('click.facebox');
The source code indicates that this is the name of the actual click handler.
Have you tried
$('#..').unbind('.facebox');
(notice the .
) this will unbind all events in the facebox namespace. (which is what the facebox uses)
精彩评论