How do I go through a hidden div in Prototype, like in jquery?

Jquery way -

$("#id:hidden:first")

$("#id:visible:last")

What are prototypes?

I am trying to use $$()and it is not working.

Can someone tell me? Many thanks.

+3
source share
2 answers

This should work:

$$('#id[style="display:none"]:first')

this should be faster:

$$('#id[style="display:none"]').first()

Cm.

+2
source

Hope this is what you are looking for

$$('#id[display=none]:first');
+1
source

Source: https://habr.com/ru/post/1717231/


All Articles