I have this code that disables checkboxes which works perfect but what I am trying to do is change the code to disable radio button instead of a checkbox how would I modify it to do this.Code:<script type="text/javascript"> <!-- function disableCheckBox() { var obj=document.forms["form1"]; for (i=0;i<obj.length;i++) { with (obj[i]) { if (type=='checkbox' && checked) { disabled=true; } } } } //--> </script> <body onload="disableCheckBox()">


Reply With Quote
Bookmarks