How to auto generate id for child div in JQuery. Please help me so can i solve problem.
there is html code i want to set ids for these so can i apply operation on these.
<div id="main">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>

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.
If you try to create new div and assign it to it one possible solution may be:
DEMO
But if you’ve already child
divs within parent thenthen one possible approach would be
According to edit
DEMO
Another approach would be
DEMO