I have a scenario where I have 3 buttons, and upon clicking any of them, I want to send the values within the <li></li>
tags to a page called send.php
. For instance, if I click on the first button, I wish to secretly send the value 1 to the send.php
page. How can I monitor these buttons and retrieve the values accordingly?
<div class="cards">
<div class="card shadow">
<ul>
<li id="one" class="price bottom-bar">1</li>
<li><a class="btn" href="" >Send</a></li>
</ul>
</div>
<div class="card active">
<ul>
<li id="two" class="price bottom-bar">2</li>
<li><a class="btn" href="" >Send</a></li>
</ul>
</div>
<div class="card shadow">
<ul>
<li id="three" class="price bottom-bar">3</li>
<li><a class="btn" href="" >Send</a></li>
</ul>
</div>
</div>