[BNM] [bnm] You know that jquery?

Remy Sharp remy at leftlogic.com
Mon May 26 21:05:58 BST 2008


Hi Nick,

This is actually a bug in jQuery (I've filled the ticket and have  
started digging around for the fix).

However, for now you can use the following to get the elements you need:

$('*').filter(function () {
     var s = $(this).attr('style') || "";
     // s format: prop: val;

     return s.match(/overflow: hidden;/);
});

Note the the format of the return value from .attr() - it's important  
if you want an exact match:

[property][colon][space][value][semi-colon]


Remy Sharp
Left Logic

work ~ http://leftlogic.com
blog ~ http://remysharp.com
project ~ http://jqueryfordesigners.com



More information about the BNMlist mailing list. Powered by Wessex Networks