Hi all
I have some date field on my form.
if I use input class="easyui-datebox" on the form, value of that filed is not updated.
If I use input class="easyui-validatebox" instead, everything woks fine.
Any idea why ?
Here is the code:
function saveCalendarTask()
{
$('#form_task_calendar').form('submit',
{
onSubmit: function()
{
return $(this).form('validate');
},
success: function(result){
if (result.substring(0,5) == "Error")
$.messager.alert('Info',result,'error');
else
{
$('#dlg_calendar_task_edit').dialog('close');
title = $('#task_title').val();
start = $('#task_start_date').val()+" "+$('#task_start_time').val();
alert(start); // here I have old date if I use input class="easyui-datebox"
if ($('#task_operacija').val()==1)
{
calendar_add(id,title,start,end,ccolor);
}
}
}
});
}
Thanks!