I have an event handler that triggers an event handler that needs to test if the children of a div contain a certain class.
For now, I’m doing this:
$('#Container .DivData').live({
mouseenter: function () {
if ($(this).find('.HiddenData')) {
// do something
} ....
The problem is that it always seems to find HiddenData even though sometimes there is none.
What’s the problem here?
try