Count how many divs has a specific content?
- by David
I want to count how many divs with the class .tool that contain the following html by example : <b>Photoshop</b>
<div class="tool"><b>After Effects</b></div>
<div class="tool"><b>Photoshop</b></div>
<div class="tool"><b>Illustrator</b></div>
<div class="tool"><b>Photoshop</b></div>
<div class="tool"><b>Photoshop</b></div>
// This would return 3
How to do that using jQuery? i only can count all .tool divs?
Thanks