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
Asked
Active
Viewed 1,571 times
2 Answers
0
You can try
<iframe onload="removeClass();" ... />
Edit:
Related thread at stackoverflow: jQuery .ready in a dynamically inserted iframe
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