I have 2 visualforce pages that will only display data if a certain condition on a Campaign is met. Otherwise the space I allocate for them is just whitespace. I have looked at this question and have adopted it's solution for resizing all of the iframes however now I would like to take it further and only designate the 2 iframes that i want resized and not to touch other embedded visual force pages. I am not fully familiar with the jQuery that is being used so I'm not sure how to go about modifying it to only change a particular VF page.
var j$ = jQuery.noConflict();
j$("iframe").each(function(){
j$(this).load(function() {
j$(this).height( j$(this).contents().find("body").height() );
});
});