Javascript examples for jQuery:Form Button
checked="checked" for radio button
<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>