Search code examples
javascriptprototypejs

selecting all DIV which have style display none


I am using prototype framework to select all the DIV which have style display:none

I am using

$$(".details-wrapper > div[style*=display:'none']")

or

$$(".details-wrapper > div[style*=display:none]")

but it's not working. Any suggestion?


Solution

  • Try

    $$(".details-wrapper > div[style*='display:none']");
    

    The demo.