how do i get the id under another id in an if statement?
$('#mainmenu').mouseenter(function () {
if ( $(this).???('#a')) {
}
if ( $(this).???('#b')) {
}
});
<div id="mainmenu">
<div id="a"></div>
<div id="b"></div>
</div>