title: JQuery, cannot change the ID of a cloned element?
body: <p>Is there an issue with updating ID's of cloned elements? I think my syntax is correct here but it's not updating.</p>
  
  <pre><code>function addQuestion(){
  // Clone the first question Container and give it a new ID
  $('#questionContainer0').clone().attr('id','questionContainer'+currentQuestion).appendTo('#questionArea');
  
  
  // Assign the new ID to the text area field (This is not working)
  $('#question0').attr('id','asdasd');
  var test = $('#question0').attr('id');
  alert(test);
  }
  </code></pre>
  
  <p>Question0 is a child element (textarea) of the original cloned questionContainer0 (div)</p>