Browse Source

Merge pull request #1198 from seonggwang/master

Fixed 'match' rule of form validation.
pull/1207/head
Jack Lukic 10 years ago
parent
commit
aef07ace58
1 changed files with 2 additions and 2 deletions
  1. 4
      src/modules/behavior/form.js

4
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();

Loading…
Cancel
Save