title: Adding a dynamically created div to another div with jquery
body: <p>I am creating two divs:</p>
  
  <pre><code>var div_day=document.createElement("div");
  var div_dateValue=document.createElement("div");
  </code></pre>
  
  <p>I then want to add div_day to an existing calendar div and div_dateValue to div_day:</p>
  
  <pre><code>$('#calendar').append(div_day)                          
  $(div_day).append(div_dateValue);
  </code></pre>
  
  <p>div_day gets added to calendar, but div_dateValue does not get added to div_day, and the script stops there.  No errors in the console but it is in a loop and should have more div_days (each with a unique id).  I am new to jquery so any help is appreciated.</p>
  
  <p>In my search I have found how to add divs, but not to add a dynamically created div to another dynamically created div.</p>
  
  <p>Thanks for your help!</p>
  
  <p>Kevin</p>