Results 1 to 2 of 2
Sep 15, 2008, 14:49 #1
- Join Date
- Sep 2008
- 0 Post(s)
- 0 Thread(s)
Prototype $$() counting hidden rows
I'm using the Scriptaculous fade() function to remove a table row. It works fine and just after I call a function that uses $$('tbody tr').each to iterate through each row in order to reset an alternating background.
What I've noticed is that the $$() iterates through even removed rows as if they're still there. Is this the typical behavior or is it a timing issue with when the fade() or remove() finishes? How do I avoid the counting of removed rows, as it's throwing off my alternating backgrounds.