Jean-Rubin Leonard
2010-03-05 01:12:36 UTC
Hi all,
I have the following in my template:
<div class="radio_lump"><input type="radio" dojoAttachPoint="lumpSumOnce"
dojoType="dijit.form.RadioButton" name="lump_sum_frequency"
id="lumpSumOnce" value="once" />Once</div>
<div class="radio_lump"><input type="radio"
dojoAttachPoint="lumpSumRecurrent" dojoType="dijit.form.RadioButton"
name="lump_sum_frequency" id="lumpSumRecurrent" value="recurring" />Over
several periods</div>
I want to know which of the button is selected. Is there a way I can do that
without going through each button and checking if they have a set value? I
hope there's a way to do this because what would one do if one has like 5
buttons? I was thinking of doing this.lump_sum_frequency but that's the name
not the attachpoint and it's therefore invalid in the js.
Any advice is welcome.
Thanks,
JR
I have the following in my template:
<div class="radio_lump"><input type="radio" dojoAttachPoint="lumpSumOnce"
dojoType="dijit.form.RadioButton" name="lump_sum_frequency"
id="lumpSumOnce" value="once" />Once</div>
<div class="radio_lump"><input type="radio"
dojoAttachPoint="lumpSumRecurrent" dojoType="dijit.form.RadioButton"
name="lump_sum_frequency" id="lumpSumRecurrent" value="recurring" />Over
several periods</div>
I want to know which of the button is selected. Is there a way I can do that
without going through each button and checking if they have a set value? I
hope there's a way to do this because what would one do if one has like 5
buttons? I was thinking of doing this.lump_sum_frequency but that's the name
not the attachpoint and it's therefore invalid in the js.
Any advice is welcome.
Thanks,
JR