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