I want to get the count of some divs. Here is my page structure as a picture. I want to get the count of cityUnderText divs.
I am using these script codes but I m getting 0 but I need just 6.
var h = $("div.cityUnderText").length;
alert(h);
var h = $(".cityUnderText").length;
alert(h);