Accessing Page Elements in the Product Page

Hi there,
I am a beginner learner in the Velo by Wix Coding environment !
I was wondering if anyone could help me with some code snippet, where I can get my “Product Page” (#productPage1) HTML elements like the following:
let all_elems = $w( ‘#productPage1’ ).elements
.
In fact, my goal is to properly enable / disable the <Prev | Next> Text Buttons with the due product navigation by embedding the code snippet inside the “$w.onReady( function () {” of the Product Page Code Panel in the Velo Environment …
.
Any HELP / comments / suggestions are welcome! And please pardon my newbie ignorance both in the Wix Editor and the Velo by Wix Coding Environments … in case if there are other simpler ways than doing this explicit coding like this …!