Jquery FancyBox target specific DIV ID?

Posted by MrThomas on Stack Overflow See other posts from Stack Overflow or by MrThomas
Published on 2010-04-10T10:27:39Z Indexed on 2010/04/10 10:33 UTC
Read the original article Hit count: 317

Filed under:
|

How do I get Fancy box to target a specific DIV ID on a page and not request the whole page in the fancybox.? This my code so fare

$(function() {

$(".style_image a").live('click', function(event) { 

    $(".style_image a").find("#show_style").fancybox();       

});
});

This don't work?

I originally tried the following:

 $(function() {

    $(".style_image a").live('click', function(event) { 

        $(this.href + " #show_style").fancybox();       

    });
    });

Not sure how this done, or if it is even possible?

here are the doc's

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about fancybox