Enable/disable Radio Button Based On Another
i have radio buttons actualdays_month,only working days. my requirement is if i press one rdb then another rdb have to disable. Here both id and name are same for all radio button
Solution 1:
Is this what you're trying to do http://jsfiddle.net/beradrian/cAdmu/?
function onChange() {
$("[name='type']").each(function() {
var disabled = !this.checked;
$("[name='" + this.value + "']").each (function() {
this.disabled = disabled;
});
});
}
onChange();
$("[name='type']").change(onChange);
Post a Comment for "Enable/disable Radio Button Based On Another"