i have a jquery code that creates iframes base on how many records the code finds, a button that onclick re size the iframe, what i am trying to do is add a class to the iframe, so that i can only show the iframe the click on. this is the code that i have, but it keeps showing all the iframes
$("<iframe />" , {
src: strTest,
id: "myframe",
width: '100%'
}).appendTo('.content');
$("<button/>", {
align: "center"
})
.text("Select Patient")
.click(function () { $("#myframe").attr("Height", "125%").addClass("selectedIframe"); }).appendTo('.content');
$(".selectedIframe", window.parent).show();
$("<hr />").appendTo('.content');
}
can somebody help me or point me to the right direction thanks