Skip to content

Instantly share code, notes, and snippets.

@equijada001
Created January 20, 2015 17:38
Show Gist options
  • Save equijada001/61444bb9aec6db5c767a to your computer and use it in GitHub Desktop.
Save equijada001/61444bb9aec6db5c767a to your computer and use it in GitHub Desktop.
Code snippet to remove .00 from dynamic asks on convio forms
var a = jQuery("div.donation-level-amount-container");
jQuery.each(a, function(index, value) {
var nv = jQuery(value).text().replace(/\.[0-9][0-9]/g, "");
jQuery(value).text(nv);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment