Skip to content
Browse files

Value for radio buttons

  • Loading branch information...
1 parent f1f97e5 commit 6edc0d0790bc260d92b5bcf87379bd8e3a92a890 @mlynch committed Apr 10, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 jquery.validate.js
View
3 jquery.validate.js
@@ -510,6 +510,9 @@ $.extend($.validator, {
},
elementValue: function( element ) {
+ if( $(element).attr('type') === 'radio') {
+ return $('input:radio[name="' + $(element).attr('name') + '"]').val();
+ }
var val = $(element).val();
if( typeof val === 'string' ) {
return val.replace(/\r/g, "");

0 comments on commit 6edc0d0

Please sign in to comment.
Something went wrong with that request. Please try again.