EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 16, 2025, 11:16:38 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
datetimebox setValue error
Pages: [
1
]
« previous
next »
Print
Author
Topic: datetimebox setValue error (Read 12051 times)
jd0000
Newbie
Posts: 7
datetimebox setValue error
«
on:
April 17, 2013, 07:46:27 AM »
When I try to use $('#datefield').datetimebox('setValue','4/12/2013 11:15'); i get the error
TypeError: $.data(...) is undefined
line is jquery-easyui-1.3.2.min.js line 11048
is the command I am using wrong?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: datetimebox setValue error
«
Reply #1 on:
April 19, 2013, 01:59:13 AM »
Please refer to this example
http://jsfiddle.net/Amavh/
. It works fine.
Logged
jd0000
Newbie
Posts: 7
Re: datetimebox setValue error
«
Reply #2 on:
April 19, 2013, 06:50:15 AM »
yup that works fine. ive been trying to narrow down the issue. my html with the datetime input is loaded through ajax. when i put it on the initial page statically it works. when i load it through ajax i get that error
TypeError: $.data(...) is undefined
[Break On This Error]
var opts=$.data(_823,"datetimebox").options;
jquery-easyui.min.js line 11048 ( my easyui min is different from the one you used on jfiddle, but its the same version? ... i tried the one you used and had the same problem ).
Logged
jd0000
Newbie
Posts: 7
Re: datetimebox setValue error
«
Reply #3 on:
April 19, 2013, 07:37:53 AM »
ok got it now. it was related to it being ajax.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...