mikey
mikey

Reputation: 1460

remove gray out from disabled radio buttons

Quick question, I have a form with a series of radio buttons that are disabled if a certain user sees the form. For aesthetic reasons I would like to remove the graying out that comes by default with the disabling. I have tried some css but so far no success, anyone could give me a hand?

Upvotes: 4

Views: 1741

Answers (1)

JRulle
JRulle

Reputation: 7568

While I still dont understand the reasoning behind making a disabled radio button look clickable... I managed to get the behavior to work using jquery. JSFiddle

  $(function(){
    $('#myRadio').on('change',function(){   
        $('#myRadio').prop('checked', function(){
             return this.defaultChecked;
        });
    });
  });

Upvotes: 3

Related Questions