title: Jquery clone children
body: <p>I'm using jQuery clone and children concepts for my project. I'm using one table within div (class is clonedInput), by clicking one button I'm cloning the whole div and inserting it after the div. In this time:
  "</p>
  
  <pre><code>var num     = $('.clonedInput').length;
  var newNum  = new Number(num + 1);
  var newElem = $('#input' + num).clone().attr('id', 'input' + newNum);
   $('#input' + num).after(newElem);
  </code></pre>
  
  <p>"
  by using this I'm increasing the div id. At the same time I want to increase the table tr and td's id. For that I tried <code>children.attr()</code>. But this is not increasing the table ids. Can anyone clarify this for me?</p>
  
  <p>Thanks in advance.</p>