How do we query an app's dom without dojo/query?

458
2
Jump to solution
05-12-2021 08:31 AM
WilsonIonara
New Contributor III

How do we query an app's dom without dojo/query? I am using 4.19. Thanks

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

Everything you need for DOM navigation in native to JavaScript these days.

https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector

 

 

 

View solution in original post

0 Kudos
2 Replies
ReneRubalcava
Frequent Contributor

Everything you need for DOM navigation in native to JavaScript these days.

https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector

 

 

 

0 Kudos
WilsonIonara
New Contributor III

Yes, you are right. I was getting undefined when trying to get an element using

 

document.querySelectorAll

 

But it was probably because the element hadn't been rendered already. Thank you!

 

0 Kudos