1000hz / bootstrap-validator

A user-friendly HTML5 form validation jQuery plugin for Bootstrap 3
http://1000hz.github.io/bootstrap-validator
MIT License
2.38k stars 1.07k forks source link

a custom function bug? #596

Open ghost opened 7 years ago

ghost commented 7 years ago

Custom functions do not support hump naming when using custom validation? my right custom function like as

 custom: {
                                selectcheck: function ($el) {
                                   // var matchValue = $el.data("selectcheck");
                                    var selectValue = $el.val();
                                    if (selectValue == "999" || selectValue == "") {
                                        return "请选择您要选择的内容...";
                                    }

                                }
                            }

the error is like as

 custom: {
                                selectCheck: function ($el) {
                                   // var matchValue = $el.data("selectcheck");
                                    var selectValue = $el.val();
                                    if (selectValue == "999" || selectValue == "") {
                                        return "请选择您要选择的内容...";
                                    }

                                }
                            }

the error code is do not work for the validate ?

@1000hz thinks !