I have 3 Radio Buttons, and I need 2 of them to enable the textbox.
So far I have it set up as follows.
<form id="form1" name="form1" method="post" action="">
<table width="250">
<tr>
<td>
<label>
<input type="radio" name="RadioGroup1" value="B1" id="RadioGroup1_0" />Quote
</label>
</td>
<td>
<label>
<input type="radio" name="RadioGroup1" value="B2" id="RadioGroup1_1" />Bind
</label>
</td>
<td>
<label>
<input type="radio" name="RadioGroup1" value="B3" id="RadioGroup1_2" />Quote/Bind
</label>
</td>
</tr>
</table>
<br />
<label>
Effective Date/Time
<input name="EffDate" type="text" id="EffDate" placeholder="yyyy/mm/dd hh:mm HRS" disabled="disabled"/>
</label>
</form>
And I have one button set up to enable the textbox
$('#RadioGroup1_1').change(function(){
$('#EffDate').removeAttr('disabled');
});
$('#RadioGroup1_2').change(function(){
$('#EffDate').removeAttr('disabled');
});
My Problem is that after clicking RadioGroup1_1 or 1_2 The "effdate" textbox does not go back to its disabled state. I only want the box enabled while the radio button is selected.
I've tried looking into it but cannot find my specific answer, and in the interest of full disclosure this is all very new to me!
Thanks!