Hi Davis
First, you can't use twice the same id. That's a radio button then you
must use the same name attribute in both fields.
You can use
$('input[name=vo_grantview][value=f]').attr('checked', true);
Here you have the example of that code:
http://jsbin.com/uceyiEl 30/06/2009, a las 12:53, Davis escribió:
>
> Hello,
>
> i got 2 radio button and default selected "p"
>
> <input type="radio" value="p" id="vo_grantview" checked />p
> <input type="radio" value="f" id="vo_grantview" name="vo_grantview" /
>> f
>
> so how to use jquery to set "f" as selected one?
> something like $('#vo_grantview').val('f').checked?
>
> thanks/Davis.