EasyUI Forum
March 29, 2024, 01:51:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem about $.fn.validatebox.defaults.missingMessage  (Read 7176 times)
adg456jljlx
Newbie
*
Posts: 6


View Profile
« 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?



Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!