Assuming the following:

  <input type="radio" name="someName" id="Demo" value="hello">

The following will "check" the radio button:

  $('#Demo').attr('checked', true);

If you _really_ need to ONLY check the radio button if it's got an
id="Demo" AND value="hello":

  $('#Demo[value=hello]')

Karl Rudd

On Tue, May 20, 2008 at 8:47 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> When my page loads, I'd like to check a radio button whose ids are
> "Demo" and whose value is "hello".  How do I do this with JQuery?
>
> Thanks, - Dave
>

Reply via email to