It's my HTML, how to get a label of a button and assign it to a variable using JS? In that example variable would have value = 2.
<li class="a-GV-pageSelector-item is-selected" data-page="1"><button class="a-GV-pageButton" type="button">2</button></li>