title: Pass parameters to dynamically created div element?
body: <p>I have a page where I'm creating several divs dynamically inside a div of my parent page. </p>
  
  <pre><code>for (i = 0; i &lt; pages.length; i++) {
          var e = document.createElement("div");
          var eid = "dynamicdiv-" + i;
          e.id = eid;
          e.style.cssText = 'position:absolute; left: ' + left + 'px; color: #0000bb;';
          maindiv.appendChild(e);
          $('#' + eid).load(pages[i]);
      }
  </code></pre>
  
  <p>My pages variable is an array of strings of urls. They are all html pages and have their own parameters. The problem I'm having is with jquery load(). It does not appear to be passing the parameters I need to create the page. Instead, it's passing the parameters from my parent page. The CSS on these pages are also not loading.</p>
  
  <p>I'm fairly new to javascript, any help would be greatly appreciated.</p>
  
  <p>Example url:
  <a href="http://example.com/index.html?param1=value" rel="nofollow">http://example.com/index.html?param1=value</a></p>
  
  <p>Any ideas? Thanks!</p>