Thanks Brandon! I'll give that a shot when I get home. In the mean time,
anyone else have any other thoughts or has Brandon nailed it on the
head? :o)
Thanks heaps!
Chris
Brandon Aaron wrote:
You should probably get an array of date values and then use a custom
filter function ... maybe something like this (untested):
var dateValues = ['date1', 'date2', 'date3'];
$("[EMAIL PROTECTED]).filter(function() {
for (var i=0; i<dateValues.length; i++);
return ($(this).attr('dateValue') == dateValues[i]);
});
--
Brandon Aaron
On 1/16/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
Hi gang,
I've got a for loop in which I have jQuery select a different DOM element
for each iteration. The code I've got that selects the element is:
FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");
So far, it's taking about three seconds to complete a loop of fifteen
iterations. Yikes! :o( If I remove the above line from the code, it's
lightning quick!
I should mention that the three second approximation is *after* I upgraded
to the very latest jQuery build (jquery-latest.pack.js... from the
jquery.com main page). So upgrading did give me a slight performance
increase.
Can anybody help me speed this up?
Thanks,
Chris
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/