Good day friends I have a problem, I have a foreach where I printed a botton with id="remove" with different value, I would like to press the button to send the value of that button and then process it with an ajax request and send that data per post.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div>
<br>
<button id="remover" value="PC150">ELIMINAR</button>
<br>
<button id="remover" value="GSX20">ELIMINAR</button>
<br>
<button id="remover" value="TC300">ELIMINAR</button>
<br>
<button id="remover" value="QW300">ELIMINAR</button>
<br>
</div>
More or less like that are my buttons but with different value. How can I get the value of the button I am pressing even if they all have the same ID = 'remove' ?, and then send that value per post to another page.