[jQuery] preset selection of radio buttons

[jQuery] preset selection of radio buttons


what is correct way to preset selection of radio buttons?
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="/lib/jquery/jquery-1.2.3.min.js"></script>
<script src="/lib/jquery/jquery.field.js"></script>
$("#radioname:checked").val(["0", "1"]);
});
</script>
</head>
<body>
<div>
<input type="radio" id="radioname" name="radioname" value="0" />
<input type="radio" id="radioname" name="radioname" value="1" />
<input type="radio" id="radioname" name="radioname" value="2" /><br/