Disable radio buttons

Normal fields can be disabled using a single line of code. Radio button fields require you to loop thru all instances and disable each one.
JavaScript

TEXT FIELDS

document.forms[0].Comments.disabled=true




RADIO BUTTON FIELDS

var rbs = document.forms[0].elements['DepStatus'];
for (i=0 ; rbs.length; i++ ) {
	rbs[i].disabled = true;
}

Posted by fbrefere001 on Wednesday April 26, 2006