Fancybox, getting Fancybox to bind using LIVE() to items being loaded onto the page after load

Posted by nobosh on Stack Overflow See other posts from Stack Overflow or by nobosh
Published on 2010-03-28T06:07:29Z Indexed on 2010/03/28 6:13 UTC
Read the original article Hit count: 645

Filed under:
|
|
|

I have a page that loads and after it loads, it pulls in a list of LIs to populate a news feed.

  • quick view
  • quick view
  • quick view
  • I'm trying to get fancy box to trigger when a user clicks on quick view but haven't had any luck. Any Ideas?

    $(document).ready(function() {
        $('.quickview').fancybox();
    });
    

    also tried:

    $(document).ready(function() {
       $('a.quickview').live('click', function() {
            $(this).fancybox();
        });
    });
    

    http://fancybox.net/

    Thanks for any ideas...

    © Stack Overflow or respective owner

    Related posts about fancybox

    Related posts about jQuery