Created
January 3, 2019 22:09
-
-
Save salsalabs/cd18d432730472b9d4ac7677452df17a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BEGIN script to remove commas from the "other" amount field on a donation page. --> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
var e = $('form[name="subform"]'); | |
if (e.length != 0) { | |
e.submit(function() { | |
var v = $('input[name="amountOther"]') | |
if (v.length != 0) { | |
v.val(v.val().replace(/,/g, '')); | |
} | |
}) | |
} | |
}) | |
</script> | |
<!-- END script to remove commas from the "other" amount field on a donation page. --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment