I have something like this:
<input type="radio" value="1" name="rdo" id="rdo_1" checked="checked" />Yes
<input type="radio" value="0" name="rdo" id="rdo_0" />No
And on some DropDown
index change I try to set the rdo_1
to Yes.
And make them both disabled.
But for some reason it is not setitng the radio button to True for first one.
What Am I Doing Wrong?
Here is How I did it:
$("input:radio[name='rdo']:checked").val('1');
$("input:radio[id='rdo_1']:checked").val('1');
$('#rdo_1').attr('disabled', true);
$('#rdo_0').attr('disabled', true);