Anyone have any feedback on the code below?  Syntax?

> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> Behalf Of Rick Faircloth
> Sent: Friday, January 16, 2009 3:53 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Is something wrong with this syntax?
> 
> 
> I've tried every version of this I can think of (after
> checking the docs and Google, etc.), but I can't get this
> to work.
> 
> Is there something wrong with this syntax?  If I check the
> radio input whose value="0", why won't this return 0 as the
> value?
> 
> $('.delete-button').click(function(){
> 
>      var button = $('input:radio[name=delete_button]:checked').val();
> 
>           if (button == '0')
> 
>                { alert(button); return; }
> 
>           else
> 
>                { ...
> 
> Thanks,
> 
> Rick


Reply via email to