[BNM] [bnm] You know that jquery?

Ben Scott ben at ben-scott.co.uk
Sat May 24 12:41:02 BST 2008


Hi Nick -

If you want to target hidden divs, you can just use the hidden attribute:

$("div:hidden")

Does that do it?

Cheers,

Ben

On Sat, May 24, 2008 at 10:53 AM, Nick Taylor <nick at tangerineworks.com>
wrote:

>
> How do you get all divs that have a style attribute?
>
> Some do, some don't... I want to run a thing that removes all divs with
> a style attribute and leaves the others. Something like
>
> $("div[style]").remove();
>
> or
>
> $("div[@style*=hidden]").remove();
>
> (because the styles all have 'hidden' in them)
>
> I've been messing with this for hours now and tried about a million
> different combinations and permutations etc.
>
>
>
> 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