A Pen by Subrata Aich on CodePen.
Created
August 20, 2020 01:04
-
-
Save iamsubrataaich/9fdf4146d263161f1d68cad8aef0a651 to your computer and use it in GitHub Desktop.
BaKLOKE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<a href="#">New Suranjana Hotel</a> | |
<a href="#">New Suranjana Hotel</a> | |
<a href="#">New Suranjana Hotel</a> | |
<div class="submenu"> | |
New Suranjana Hotel | |
<div> | |
<a href="#">New Suranjana Hotel</a> | |
<a href="#">New Suranjana Hotel</a> | |
<a href="#">New Suranjana Hotel</a> | |
</div> | |
</div> | |
<a href="#">New Suranjana Hotel</a> | |
<a href="#">New Suranjana Hotel</a> | |
<a href="#">New Suranjana Hotel</a> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let submenu = document.querySelectorAll("div.submenu"); | |
// console.log(submenu[0].children); | |
if (submenu[0].children === 'div') { | |
console.log('true'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a { | |
display: block; | |
} | |
div.submenu { | |
background-color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment