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
I have a page that loads and after it loads, it pulls in a list of LIs to populate a news feed.
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();
});
});
Thanks for any ideas...
© Stack Overflow or respective owner