Generating new ids for table rows
<p>I have developed an expand/collpase data grid where each TR will expand/collapse the child rows within. Also, it can create new TR's with child rows having the ability to expand/collapse using .live() function.</p>

<p>As of now, id's for the parent TR and child TD and hardcoded. Now i have to generate unique id for parent and child rows using jquery. How can i do that..?</p>

<p>Here is the implementation: <a href="http://jsfiddle.net/pixelfx/wJBgt/14/" rel="nofollow">Demo</a></p>

<p>This is how expand/collapse works <a href="http://www.javascripttoolbox.com/jquery/" rel="nofollow">Expand/Collapse logic</a></p>

<p>Thanks,
Ravi.</p>
