[BNM] [bnm] You know that jquery?

Dan Neame danbnm at googlemail.com
Wed May 28 12:50:29 BST 2008


Bit hacky:

var overflowDivs = new Array();
$("div").each( function(){
  if( this.style.overflow == "hidden" ){
    overflowDivs.push( $(this) );
  }
}

or even

var overflowDivs = new Array();
var alldivs = document.getElementsByTagName( "div" );
for( i in alldivs ){
  if( alldivs[i].style.overflow == "hidden" ){
    overflowDivs.push( alldivs[i] );
  }
}

doesn't use an expression engine so might not be what you're after,
but it'll work

Dan

On Sat, May 24, 2008 at 1:00 PM, Nick Taylor <nick at tangerineworks.com> wrote:
> Ben Scott wrote:
>> Hi Nick -
>>
>> If you want to target hidden divs, you can just use the hidden attribute:
>>
>> $("div:hidden")
>>
>> Does that do it?
>
>
> Not entirely - the actual thing in the style is overflow="hidden"
>
>
>
>
> Nick
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> Archive Search - http://icanhaz.com/bnmarchive
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>


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