I have a check box that will if checked send a gift as a monthly gift. If check box is unchecked the gift is a single gift.
What I have:
<div id="monthly-right">
<input type="checkbox" name="level_autorepeat" id="level_autorepeat" value="false" /> Yes, automatically repeat this gift every year on this date.</div>
<div id="donation-length"></div>
What I need to display if checked:
<div id="monthly-right"><input type="checkbox" name="level_autorepeat" id="level_autorepeat" value="false" /> Yes, automatically repeat this gift every year on this date.</div>
<div id="donation-length">
<input type=hidden name="sustaining.frequency" id="sustaining_frequency" value="monthly" />
<input type="hidden" name="sustaining.duration" id="sustaining_duration" value="0" />
</div>
And back if unchecked