how do i get the id under another id in an if statement?

Posted by user295292 on Stack Overflow See other posts from Stack Overflow or by user295292
Published on 2010-04-23T23:45:39Z Indexed on 2010/04/23 23:53 UTC
Read the original article Hit count: 183

Filed under:
|
|
|
|

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>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript