Prevent users to click RadioButton - Javascript jQuery

Javascript examples for jQuery:Form Button

Description

Prevent users to click RadioButton

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.7.1.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*w  w w .  j a  v  a  2  s  . com*/
  $(".readonlyradio").click(function(){
$(this).attr('checked', false);
  });
    });

      </script> 
 </head> 
 <body> 
  <input type="radio" id="radio1" name="radio" class="readonlyradio"> 
  <input type="radio" id="radio2" name="radio" class="readonlyradio">  
 </body>
</html>

Related Tutorials