Fix a id in JQuery
<p>I am using JQuery for my application..
Having a doubt on how to add a id to my element tr.</p>

<p>My code is </p>

<pre><code>    &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
               var tr = document.createElement('tr');
              var td1=document.createElement('td');  
               tr.appendChild(td);    
 });
 &lt;/script&gt;
</code></pre>

<p>I am trying to add an id to the tr element </p>

<p>like

</p>

<p>EDIT :
by $(tr).attr('id', 'entryRow'+increment);
And resolved..Thanks</p>
