Works for me: http://jsbin.com/anopo
Are you attempting to get the value inside a change event by chance? If so, use click instead. - Richard On Thu, Aug 13, 2009 at 3:46 PM, littlerobothead <nickmjo...@gmail.com>wrote: > > Banging my head against a wall here. I have this: > > <h3><span class="num">1</span>Date Range</h3> > <p><input type="radio" class="period" name="period" value="daily"> > Daily</p> > <p><input type="radio" class="period" name="period" value="weekly"> > Weekly</p> > <p><input type="radio" class="period" name="period" value="monthly"> > Monthly</p> > > and I'm trying to get checked status with this: > > var period = $('input.period:checked').val(); > > But, of course, no joy. Do *I* need to set the checked status of the > radio button in order to use the :checked method, or doesn't the > browser handle this on it's own? I thought browsers changed the > "checked" attribute on their own. I'm totally stumped and cranky over > here. > > Thanks! > -Nick