Search code examples
jqueryfancybox

Is it possible to disable/re-enable fancybox only on specific elements?


I need to turn off/on fancybox on the elements of a list according to their focus status.
I cannot bind/unbind the click event completely, because there are other functions listening for the same event.
So, I need to know if fancybox provides a way of doing so.
If not, any alternatives to fancybox that meet this requirement would be appreciated as well. Thanks.


Solution

  • Unfortunately, none of the solutions proposed was the one I was looking for...
    The correct answer was provided here by @Naren Sisodiya, who suggested using the live() method (which at the time hadn't been surpassed yet by the new on method).
    I admit that the question could have been asked in a better form.. Sorry everyone..
    Thank you.