I want to hide/show items and show them again if requested.
I am using the following code to do it. But it slows down the page if i do it few times.
for(i=0;i < 9; i++)
$('.myBetSingleBox').eq(i).css({'display':''});
Is there a way to do it without slowing down the page? the for loop is slowing down the page, but i dont have another solution.
maybe is there a Garbage Collection possible in JQuery?
info:
hide(), toggle() methods are worst then css({‘display’:”});
Thanks!
This will hide the first 9 elements with that class.
That situation you are describing (hiding 9 elements) as a bottleneck of your application sounds unlikely.