Disable a radio button

If you want to disable a radio button there is an HTML attribute for form elements that will help you a lot: disabled.

If we use it, the elements will remain gray and cannot be clicked. It would be something like this:

Which would result in this radio button:

One detail that would be important to highlight is that this will only work in browsers that understand this attribute, which does not have to be all the ones on the market. In Iexplorer 6 and Netscape 7 it does work.

See also  newsletter unsubscribe
Loading Facebook Comments ...
Loading Disqus Comments ...