diff --git a/jquery.are-you-sure.js b/jquery.are-you-sure.js index aae155f..b75fe78 100644 --- a/jquery.are-you-sure.js +++ b/jquery.are-you-sure.js @@ -49,7 +49,9 @@ val = $field.is(':checked'); break; case 'select': - val = $field.val().toString(); + if($field.val()) { + val = $field.val().toString(); + } break; default: val = $field.val();