title: create iframes with jquery each function
body: <p>I need to create an iframe for each input on a page, but all of them must be in different variables. So, the iframes' vars must be the inputs' names.</p>
  
  <p>I tried this, but it didn't work:</p>
  
  <pre><code>$("input").each(function () {
  
           var name = $(this).attr("name");
  
  name = document.createElement("iframe");name.src = "";name.name = "focus";document.body.appendChild(name);
      });
  </code></pre>
  
  <p><br>
  This is my original working iframe create code:</p>
  
  <pre><code>var focus = document.createElement("iframe");focus.src = "";focus.style.display = "none";focus.name = "focus";document.body.appendChild(focus);
  </code></pre>
  
  <p>I took the input name with <code>attr()</code>. I want to create an iframe according to that input name. after that for example I will be able to redirect it by <code>INPUTNAME.src</code></p>
  
  <p>How can I create specific iframes according to input names?</p>