Skip to content

Commit

Permalink
Merge pull request #47 from apassant/1.8-dev
Browse files Browse the repository at this point in the history
Fix for select fields with 'multiple' option and no selected values
  • Loading branch information
codedance committed Jun 17, 2014
2 parents 566fa6c + 3054621 commit ede975f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.are-you-sure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ede975f

Please sign in to comment.