Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 786
mikey Avatar asked Sep 11 '25 04:09

mikey


1 Answers

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;
        });
    });
  });
like image 188
JRulle Avatar answered Sep 13 '25 14:09

JRulle