Design comparison
Solution retrospective
Firstly I confused to write java script code for accordion because its my first time to wrote . selecting of node element and parent element is little bit confuse. it is an experience to select an element by tag name or class or id .
What specific areas of your project would you like help with?dear friends , could you help me how to select and what is node selectors and parent selector and overall dom methods ,target an element ,toggle an element. more importantly i understand the topic of writing code but selecting of elements by tag name, class name, class List, node selectors are more complex to me . any one help me to get out from this .
Community feedback
- @MikDra1Posted 3 months ago
@seshadrianadasu
If you have problem with DOM selection there are some tips
To select an id:
document.getElementById('')
To select a class
document.getElementByClassName('')
You can also use ``document.querySelector('')
To select multiple elements with the same class
document.querySelectorAll('')
This querySelectorAll will return a node list which we need to convert to array to make use of array methods and here is how we do that:
Array.from(document.querySelectorAll(''))
If this comment was useful please mark it as helpful 💗
Good job and keep going 😁😊😉
Marked as helpful0 - @MikDra1Posted 3 months ago
Nice one @seshadrianadasu 😄
The only thing that I encourage you to change is the pattern at the top (it doesn't take the full width of the screen)
Good job and keep going 😁😊😉
Marked as helpful0@seshadrianadasuPosted 3 months agowhere mobile or desktop@MikDra1 and i am not understand where to change the top
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord