Skip to content

Instantly share code, notes, and snippets.

@shanaver
Last active August 29, 2015 14:06
Show Gist options
  • Save shanaver/bc74d09e5f41abdf4481 to your computer and use it in GitHub Desktop.
Save shanaver/bc74d09e5f41abdf4481 to your computer and use it in GitHub Desktop.
Setting the recurring option by default
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery( window ).load(function() {
jQuery('#donately-one-time-donation').prop('checked', false);
jQuery('#donately-recurring-donation').prop('checked', true);
});
</script>
</head>
<body>
<div style="width:400px;margin:50px auto">
<script src='https://www.dntly.com/assets/js/v1/form.js'
data-donately-id='198'
data-donately-amount='20'
data-donately-ssl='true'
data-donately-onbehalf='true'>
</script>
</div>
</body>
</html>
@shanaver
Copy link
Author

Note: you'll need to host this on a secure (https) page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment