bootstrap-validator icon indicating copy to clipboard operation
bootstrap-validator copied to clipboard

a custom function bug?

Open ghost opened this issue 7 years ago • 0 comments

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 !

ghost avatar Oct 24 '17 09:10 ghost