EasyUI Forum

General Category => General Discussion => Topic started by: ryupanqui on February 21, 2014, 09:07:51 AM



Title: Reset function on datebox
Post by: ryupanqui on February 21, 2014, 09:07:51 AM
I have a problem. I want to update the original value of datebox sometimes and then do reset. I do the following, but does not work.

Code:
$datebox.datebox({ required:true });
$datebox.datebox({value: '21/02/2014'})
$datebox.datebox('reset') // output: "" (PROBLEM)

But this works in the combobox or combotree, for example.

Code:
$combo.combobox({ required:true });
$combo.combobox({value: '1'})
$combo.combobox('reset') // output: "1"


Title: Re: Reset function on datebox
Post by: stworthy on February 24, 2014, 05:47:28 PM
Please try the code below instead.
Code:
$datebox.datebox({ required:true,value: '21/02/2014' });
$datebox.datebox('reset');
Or download the updated date box plugin from http://www.jeasyui.com/easyui/plugins/jquery.datebox.js and include it to the page.