Configuration is as follows
$ctl.datebox({
formatter : function(date) {
var y = date.getFullYear();
var m = date.getMonth() + 1;
var d = date.getDate();
return y + '-' + m + '-' + d;
},
parser : function(s) {
var t = Date.parse(s.replace(/-/g, "/"));
if (!isNaN(t)) {
return new Date(t);
} else {
return new Date();
}
}
Modify, save and execute $ctl.datebox('setValue', 'xxxx');
Execute after modification$('#billdate').datebox({disabled : false} );
and$('#billdate').datebox({disabled : true});
The value will be changed back to the value before modification
How to solve this problem
Solved, can be solved by using combo's readonly method.