checked="checked" for radio button - Javascript jQuery

Javascript examples for jQuery:Form Button

Description

checked="checked" for radio button

Demo Code

ResultView the demo in separate window


<html>
   <head> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> 
   </head> 
   <body> 
      <script type="text/javascript">
$(function(){/*from w w  w  .j ava 2  s .c  om*/
$('body').append('<input type="radio" checked="checked" value="33" name="whatever" id="aa">');
});

      </script>  
   </body>
</html>

Related Tutorials