Add row using jquery
<p>I am printing a row with id as 'contactlist1', 'contactlist2', 'contactlist3'.... I have done this according to values stored in database. Now I want to add more row with id 'contactlist4', 'contactlist5', on button click event using jquery. Though I have taken values of variables that I am printing according to database in table. Now I wish to add row next to that id...</p>

<pre><code>&lt;tr id='contactlist1'&gt;
&lt;tr id='contactlist2'&gt;
</code></pre>

<p>I want to add row as  <code>&lt;tr id='contactlist3'&gt;</code> for that I have used command</p>

<pre><code>$("#contactlist" + k ).after(newRow);
k++;
</code></pre>

<p>k has value 3 that I have taken in variable. Is this correct to way to present id as <code>'contactlist3'</code> </p>
