I want to do this for all dateboxes, and on double-click, not single click. I tried this code but it doesn't work.
$('.easyui-datebox').next().on('dblclick', function(){
if (!($(this).datebox('getValue'))){
var opts = $(this).datebox('options');
var value = opts.formatter(new Date());
$(this).datebox('setValue',value);
}
})