try this: $('.comp').click(function(){ alert($('.comp').val()); });
it alerts 'equal'. On Oct 30, 2:31 pm, Snooze <[EMAIL PROTECTED]> wrote: > I have a radio button defined as: > <input type="radio" name="compare" class="comp" value="equal"> > > And the following jQuery code: > $('.comp').click(function(){ > alert(reqsearch.compare.value); > > }); > > There value it returns is undefined. How do I get it to return "equal"?