You could also use filter to get a jQuery object of the tables that have borderCollapse == collapse.
var $tables = $('table').filter(function() { return $(this).css('borderCollapse') == 'collapse'; }); Now you can run any jQuery methods you might need on this result set. That is if you need to use this group of tables again later. -- Brandon Aaron On 4/9/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
Hi Geoff, You should be able to loop through he tables with .each() and see if they have the css property border-collpase set to "collapse" and if so, do something. The following should work -- inside a $(document).ready(), of course: $('table').each(function() { if ($(this).css('borderCollapse') == 'collapse') { //do your magic }; }); --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 9, 2007, at 4:26 PM, Geoffrey Knutzen wrote: How would one select all tables in a document that have the css property border-collapse set to collapse? My goal is to make a work around for a FF bug (https://bugzilla.mozilla.org/show_bug.cgi?id=244135) where borders disappear sometimes. I am hoping for find all tables with border-collapse=collapse, set them to separate then set them back to collapse again. Thanks -Geoff