Skip to content

Commit

Permalink
[BUGFIX] Adds ajax validation for <select/>
Browse files Browse the repository at this point in the history
  • Loading branch information
jmverges committed Jun 29, 2016
1 parent 2719a04 commit d56135c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
fieldName = settings.formValuesPrefix + '[' + fieldName + ']';
}

formhandlerDiv.on('blur', "input[name^='"+ fieldName + "'],textarea[name^='"+ fieldName + "']", function() {
formhandlerDiv.on('blur', "input[name^='"+ fieldName + "'],select[name^='"+ fieldName + "'],textarea[name^='"+ fieldName + "']", function() {
var field = $(this);
var name = field.attr("name");
var shortName = name.replace(settings.formValuesPrefix, '').replace("[", "").replace("]", "");
Expand Down

0 comments on commit d56135c

Please sign in to comment.