Lock radio buttons, checkboxes, and <select> menus without graying them out - Javascript jQuery

Javascript examples for jQuery:Select Dropdown

Description

Lock radio buttons, checkboxes, and <select> menus without graying them out

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.4.2.js"></script> 
      <script type="text/javascript">
    $(function(){/*w  ww  . ja  v a2s  .  c  om*/
$(':radio:disabled').removeAttr('disabled').click(function(){
    this.checked=false;
})
    });

      </script> 
   </head> 
   <body> 
      <input type="radio" disabled>  
   </body>
</html>

Related Tutorials