I have a table with its tr tags. I want to display two tr tags side by side by its class. How can i able to do that using jquery.
<table>
<tr class='1'>
<td>First</td>
</tr>
<tr class='1'>
<td>second</td>
</tr>
<tr class='2'>
<td>third</td>
</tr>
<tr class='3'>
<td>fourth</td>
</tr>
<tr class='3'>
<td>fifth</td>
</tr>
</table>
Then in the output i want to display
First Second
Third
Fourth Fifth
I want to set those dynamically how can i do that using jquery or javascript. I want to use the class declared for the tr tag. I know want to use <td>
tag for that.
Any help is appreciated