I have a div like:
<div id="x" name="x" class="x" style=""></div>
and contained in this div, I have several divs like this:
<div id="y_1" name="y_1" class="y" style=""></div>
<div id="y_2" name="y_2" class="y" style=""></div>
<div id="y_3" name="y_3" class="y" style=""></div>
and etc.
QUESTION 1: How to determine how many of these divs (class = "y") are contained in the div container (class = "x")? - (for example, only a warning ("") with a number.)
QUESTION 2: How can I do something for each of these y-divs (class = "y"), such as a function that can put the letter "Y" in all y-divs using $ ('. Y') . Html ("Y") ;, for example,
Any help appreciated by the guys ....
source
share