how can I iterate through the divs inside one div, and if they all have the same ‘display’ value(‘none’), display a message?
I’m just learning and I need to use it one hundred percent
jQuery
<div class="test1">
<div class="test2" style="display:none">
</div>
<div class="test2" style="display:none">
</div>
<div class="test2" style="display:none">
</div>
<div class="test2" style="display:none">
</div>
</div>
I tried it using jQuery.each
New contributor
user24637569 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2