From abb1e06f1f5ff8698c8d4d270a54490fe74a06e7 Mon Sep 17 00:00:00 2001 From: "seonggwang.gwon" Date: Mon, 27 Oct 2014 17:12:19 +0900 Subject: [PATCH] Fixed 'match' rule of form validation. --- src/modules/behavior/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/behavior/form.js b/src/modules/behavior/form.js index 917fd361c..a4dc56a34 100755 --- a/src/modules/behavior/form.js +++ b/src/modules/behavior/form.js @@ -714,8 +714,8 @@ $.fn.form.settings = { if($form.find('#' + fieldIdentifier).size() > 0) { matchingValue = $form.find('#' + fieldIdentifier).val(); } - else if($form.find('[name=' + fieldIdentifier +']').size() > 0) { - matchingValue = $form.find('[name=' + fieldIdentifier + ']').val(); + else if($form.find('[name="' + fieldIdentifier +'"]').size() > 0) { + matchingValue = $form.find('[name="' + fieldIdentifier + '"]').val(); } else if( $form.find('[data-validate="'+ fieldIdentifier +'"]').size() > 0 ) { matchingValue = $form.find('[data-validate="'+ fieldIdentifier +'"]').val();