[jQuery] jquery looping is slow

[jQuery] jquery looping is slow


Hi,
looping with jquery is quite slow, but still I want to continue with
jquery looping(not custom looping) for reasons I can't explain right now.
In my scenario I've to loop through rows of table and update the sequence of
rows on table dynamically.
suppose I've table with id "tableId".
<table id="tableId">
<tr>
<th>sq </th>
<th>name </th>
<th>ID </th>
</tr>
<tbody>
<tr>
<td class="sq">sq </td>
<td>name </td>
<td>ID </td>
</tr>
<tr>
<td>sq </td>
<td>name </td>
<td>ID </td>
</tr>
<tr>
<td>sq </td>
<td>name </td>
<td>ID </td>
</tr>
</tbody>
</table>
$("#tableId tbody tr")
.each(function(){
some manipulation on table colomns...
});
This looping is taking 3-4 secs for table with 300 rows..
Can any one tell alternate way of looping and manipulating the table cols..
Thanks in advance..
--
View this message in context: http://www.nabble.com/jquery-looping-is-slow-tf4477318s15494.html#a12766732
Sent from the JQuery mailing list archive at Nabble.com.