-2

I need to remove class hidden after the iframe load, My code http://jsfiddle.net/rzP5S/3/ , I tried to use .ready() but didn't work

Déjà Bond
  • 291
  • 4
  • 8
  • 32

2 Answers2

0

You can try

<iframe onload="removeClass();" ... />

Edit:

Related thread at stackoverflow: jQuery .ready in a dynamically inserted iframe

Community
  • 1
  • 1
benbai123
  • 1,423
  • 1
  • 11
  • 11
0

You can try

$(window).load(function () {
 //Use removeClass() here
 $('#contentpage').children().removeClass('onePost');
});
  • I dont see the point, isint the code already inside shorthand of jquery document ready? http://rdjs.co.uk/jquery-document-ready-alternatives/53 – Mauno Vähä Aug 26 '12 at 09:10