I have following divs
- <div class="Main">
- <div class="pipe">
- <div class="mine">div>
- <div class="mine">div>
- <div class="mine">div>
- div>
- <div class="pipe">
- <div class="mine">div>
- <div class="mine">div>
- div>
- div>
var count = $(.pipe.mine).length;
It counts all divs with class = "mine" and shows count as 5.
but I want to only count divs with class = "mine" in upper div not both the divs
Thanks in Advance!!!

Sachin SinghRank #66 · 26.2K reputationPosted Oct 26, 2020, 10:38 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 26, 2020, 11:00 PM EDT
AnkushRank #8,005 · 230 reputationPosted Oct 26, 2020, 10:30 PM EDT
Ronika JencyRank #770 · 3K reputationPosted Oct 26, 2020, 10:50 PM EDT
AnkushRank #8,005 · 230 reputationPosted Oct 26, 2020, 10:55 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 27, 2020, 7:11 AM EDT
Harshal LimayeRank #485 · 5.1K reputationPosted Jan 5, 2021, 3:35 AM EST