Javascript examples for jQuery:Form Button
Prevent users to click RadioButton
<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>