//code
<script type="text/javascript">
$(document).ready(function () {
if (!$("input[type=radio]:checked").length>0) {
$("input:radio:first-child").attr('checked', 'checked');
}
});
</script>
<script type="text/javascript">
$(document).ready(function () {
if (!$("input[type=radio]:checked").length>0) {
$("input:radio:first-child").attr('checked', 'checked');
}
});
</script>