I'm having a problem with the following code. Below is my javascript
<script type="text/javascript"><!--
function toggleTB(val, targetTB) {
var b = 'disabled';
if (val == '1') b = '';
$('#' + targetTB).attr('disabled', b);
}
my html -
<input id="obp17" name="obp17" onclick="toggleTB('0', 'obp4a');" type="checkbox"/>Corner
<input id="obp4a" name="obp4a" type="radio" value="17" />Facing Down
<input id="obp4a" name="obp4a" type="radio" value="18" />Facing Up
What I want to happen is that when the user clicks on the check box, both radio buttons are disabled. What is happening is that only the first radio button is disabled. I'm new to jquery selectors, can someone tell me the correct syntax.
Thanks in advance