[jQuery] query attribute names, not values?

[jQuery] query attribute names, not values?


Hi,
I've been using the following JQuery code to generate striped table rows:
$(".zebra tr:odd").addClass("odd");
However, we're use a CMS & each time a user edits a page that employs this
code, the CMS appears to be adding a nasty jquery-related attribute to each
table row that has a class value of 'odd'. For example:
<tr class="odd" jquery1201791561172="13" jquery1202395579096="12"
jquery1202723035398="10" jquery1202723075859="10" jquery1202747552558="10"
jquery1203356118865="8" jquery1203433854906="6" jquery1204552517328="4"
jquery1204553546546="4">
Obviously our preferred solution would be to fix our CMS, but until that's
done is there a way in JQuery to apply a regular expression test on all
attribute names (not values) to remove all such offending attributes?
Thanks.
--
View this message in context: http://www.nabble.com/query-attribute-names%2C-not-values--tp15828998s27240p15828998.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.