Skip to main content

javascript - jQuery in Fancybox not working html() and hide() -


i have fancybox open hidden_div aftershow()

there link on hidden_div calls function:

 $('#image_tagged').html(''); // these work $('#image_name_tagged').hide(); // these work $('#image_tagged_fancybox').live("remove icons", function(){ // not work $(this).html(''); }); $('#image_tagged_fancybox_name').hide(); // not work } }); 

the jquery #image_tagged , #image_name_tagged work -- these ids not on top of fancybox-overlay (the hidden tab after fancybox called).

the jquery #image_tagged_fancybox (the jquery called links within hidden tab) not work. interestingly...

$('#image_tagged_fancybox_name').html(); 

still gives me correct information.

any appreciated!

javascript - jquery in fancybox not working html() , hide() - stack overflow

learn, share, build

each month, on 50 million developers come stack overflow learn, share knowledge, , build careers.

join world’s largest developer community.

sign up

i have fancybox open hidden_div aftershow()

there link on hidden_div calls function:

 $('#image_tagged').html(''); // these work $('#image_name_tagged').hide(); // these work $('#image_tagged_fancybox').live("remove icons", function(){ // not work $(this).html(''); }); $('#image_tagged_fancybox_name').hide(); // not work } }); 

the jquery #image_tagged , #image_name_tagged work -- these ids not on top of fancybox-overlay (the hidden tab after fancybox called).

the jquery #image_tagged_fancybox (the jquery called links within hidden tab) not work. interestingly...

$('#image_tagged_fancybox_name').html(); 

still gives me correct information.

any appreciated!

share|improve question
1  
1. suggest using on rather live. 2. remove icons custom event ? – furqan jul 7 '12 @ 8:16
    
i have never seen remove icons event either. – jfk jul 7 '12 @ 8:25
    
even if used $('#image_tagged_fancybox').html(''); not work – delos chang jul 7 '12 @ 15:44
    
if pretend write white space $('#image_tagged_fancybox').html(''); use $('#image_tagged_fancybox').empty(); instead – jfk jul 7 '12 @ 19:01

your answer

 
discard

posting answer, agree privacy policy , terms of service.

browse other questions tagged or ask own question.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -