I want to get all div elements containing the class, edit-buttons, but not containing the class, hideElements. I have used the following jQuery. But it selects all divs containing the class, edit-buttons.
alert($("div#listView > div.edit-buttons").not(".hideElement").length);
Based upon the elements shown in the enclosed picture, only one div should be selected, instead all four divs are selected! I have even tried: alert($("div.edit-buttons:not(.hideElement)").length); But the result was the same!
