title: add a class to iframe and select that class to display iframe
body: <p>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</p>
  
  <pre><code>$("&lt;iframe /&gt;" , {
          src: strTest,
          id: "myframe",
          width: '100%'       
  
      }).appendTo('.content');
      $("&lt;button/&gt;", {
        align: "center"
      })
      .text("Select Patient")    
      .click(function () { $("#myframe").attr("Height", "125%").addClass("selectedIframe"); }).appendTo('.content');
      $(".selectedIframe", window.parent).show();
    $("&lt;hr /&gt;").appendTo('.content');
  }
  </code></pre>
  
  <p>can somebody help me or point me to the right direction thanks</p>