[jQuery] Slow Selector... What should I do?

[jQuery] Slow Selector... What should I do?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New, Courier, monospace">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 = $("td[@dateValue=" + 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
</font></font>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.cjordan.info">http://www.cjordan.info</a></pre>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/