I'm trying to get the value of a button when it is clicked, because iI got multiple buttonbuttons depending on how much data iI got. So iI need to know which button did iI click. I got the code for the button like below.
<button type="submit" data-multiship-item-update="" class="action split" data-role="split" data-flag="0" value ="<?php echo $index ?>" <?php if ($reduce >= (int)$item->getQty()):?> disabled="disabled" <?php endif; ?>><span><?php /* @escapeNotVerified */ echo __('Add item(s) to Address') ?></span></button>
So the question is, how i can I get the value of the button if iwhen I click it?