I guess this would be even better: $("#option01:checked")
Not sure why I did not think of that earlier. :) On Jul 20, 11:53 am, Micky Hulse <[EMAIL PROTECTED]> wrote: > Hi, > > I have a form (#fmSearch) with three radio buttons: > > <input name="options" value="a.html" id="option01" type="radio"> ... > <input name="options" value="b.html" id="option02" type="radio"> ... > <input name="options" value="c.html" id="option03" type="radio"> ... > > When testing for a specific radio button, which of the below > techniques is faster/better? > > $('#option01').attr('checked', 'checked'); > > or > > $("[EMAIL PROTECTED]'option01']:checked") > > If I had to guess, I would say the the first option is faster... but I > like the readability of the second one better. > > Anyone know of a good tutorial that details how to wok with forms > using jQuery (sans-plugins)? > > Many thanks in advance! > > Cheers, > Micky