title: How to auto generate id for child div in JQuery
body: <p>How to auto generate id for child div in JQuery. Please help me so can i solve problem.</p>
  
  <p>there is html code i want to set ids for these so can i apply operation on these.</p>
  
  <pre><code>&lt;div id="main"&gt;
  
  &lt;div class="child"&gt;&lt;/div&gt;
  &lt;div class="child"&gt;&lt;/div&gt;
  &lt;div class="child"&gt;&lt;/div&gt;
  &lt;div class="child"&gt;&lt;/div&gt;
  &lt;div class="child"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Ck6dk.png" alt="enter image description here"></p>
  
  <p>I want to fit this. when click on + it should be max on complete div and when less it should be again on same possition.</p>