EasyUI Forum
September 13, 2025, 11:29:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Updating easyui-datebox error  (Read 8383 times)
bakkers
Newbie
*
Posts: 21


View Profile Email
« on: July 01, 2015, 11:58:36 PM »

Hello

I have created a easyui-window and in this window i have a easyui-datebox field.

When i click on a button i update the easyui-datebox with a date.

$('#myDate').datebox('setValue', document.getElementById('dateHidden').value);

The problem is that i can't see the value in the easyui-datebox field. The field is empty, but it isn't because if i in the same script function gets the value i can see that the value is set.

      alert($('#myDate').datebox('getValue'));

Do i need to refresh the field in some way, or is it an error with using a easyui-window and easyui-datebox?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: July 02, 2015, 02:01:11 AM »

Please refer to this example http://jsfiddle.net/z844z0p5/
Logged
bakkers
Newbie
*
Posts: 21


View Profile Email
« Reply #2 on: July 02, 2015, 02:08:07 AM »

There was no error. I found out i had made an error elsewhere.

This thread can be deleted.
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!