EasyUI Forum
May 06, 2024, 09:17:45 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: Reset function on datebox  (Read 8448 times)
ryupanqui
Newbie
*
Posts: 44


View Profile Email
« 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"
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
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!