Ok, I need to stop floundering around! Hehe... This is what I wanted:
if($('#option02').is(':checked')) I think I need to read the docs... jQuery site is down for me though... Anyway, I am still looking for links to jQuery form tutorials! :) Have a great day all. Micky On Jul 20, 11:57 am, Micky Hulse <[EMAIL PROTECTED]> wrote: > 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