javascript - Targeting an iframe element using colorbox -
i have link displaying contents in colorbox plugin via iframe method , target specific elements inside iframe.
can't seem figure out. below at...any appreciated.
$(".thickbox").colorbox({iframe:true,width:450, height:570, title: 'form title', oncomplete: function() { $("#cboxloadedcontent iframe").contents().find("a.login").css("display","none"); } });
i use firebug , set breakpoints can browse through dom , find path you're looking for.
break $("#cboxloadedcontent iframe")... line multiple lines, set breakpoints on each make sure know it's going wrong , debug there.
Comments
Post a Comment