Greenpeace Washington, DC 20001 ').insertBefore('.at-fieldset.ContributionInformation .at-legend'); } //add monthly button options var monthly = ' '; // var monthlyAmounts = [15,25,35,45,55]; this is set in JSInjector now - there's a default, and optional overrides for (i=0; i $' + monthlyAmounts[i] + ''; monthly = monthly + newElement; } monthly = monthly + ''; $('.SelectAmount .at-radio .at-radios').prepend(monthly); //test query string for recurring function getParameterByName(name) { url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); } if ($('.at-recurring .IsRecurring input[type="checkbox"]').prop("checked") || getParameterByName('r') == "true" ) { // determine active class based on initial monthly checkbox status