EasyUI Forum

General Category => General Discussion => Topic started by: adg456jljlx on February 08, 2017, 03:45:24 AM



Title: Problem about $.fn.validatebox.defaults.missingMessage
Post by: adg456jljlx on February 08, 2017, 03:45:24 AM
the version of easyui is 1.5.1

I want to modify the default tip when validatebox's value is null.

below is the code
Code:
$(function() {
     $.fn.validatebox.defaults.missingMessage = 'This field can't be null';
     $.fn.combobox.defaults.missingMessage = '该输入项为必输项2222222';
});

the set of validatebox take no effect, but the set of combobox take effect. why?

Can someone help me to solve this problem?





Title: Re: Problem about $.fn.validatebox.defaults.missingMessage
Post by: stworthy on February 09, 2017, 05:32:34 PM
Please use this code instead.
Code:
<script>
     $.fn.validatebox.defaults.missingMessage = 'This field can't be null';
     $.fn.combobox.defaults.missingMessage = '该输入项为必输项2222222';
</script>