Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.15.26.184
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<link rel="stylesheet" href="http://yegor256.github.io/tacit/tacit.min.css"/>
</head>
<body>
<form id="checkout-selection" method="POST">
<input type="radio" name="checkout" value="automatic">Automatic Checkout Demo<br>
<input type="radio" name="checkout" value="orders">Manual Checkout Demo<br>
<input type="submit" value="Submit">
</form>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($)
{
var form = $('#checkout-selection');
var radio = $('input[name="checkout"]');
var choice = '';
radio.change(function(e)
{
choice = this.value;
if (choice === 'orders')
{
form.attr('action', 'pay.php?checkout=manual');
}
else
{
form.attr('action', 'pay.php?checkout=automatic');
}
});
});
</script>
</body>
</html>
|