Search
Select the next sibling element for the first button element and store it in the nextElem variable. Then, select the previous sibling element for the second button element and store it in the prevElem variable.
Check if the buttons are working: