Here is my code:
<select name="points">
<option value="5">5 points</option>
<option value="10">10 points</option>
<option value="50">50 points</option>
</select>
here is my Javascript code:
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="test key"
data-amount="option value here" // i need help here
data-name="Site Name"
data-description="2 widgets ($20.00)"
data-image="/128x128.png">
</script>
The javascript code is a button for a popup. i want to get the select option value and i want to insert that into the data-amount in the js code. how can i do that?