动态重新加载日期选择器
好的,我有一个 javascript 对象来控制页面上的元素,例如加载 html、撤消、重做等。
当我撤消时,它会从应该是日期选择器的输入中删除日期选择器。
我的代码位于这里: http://jsfiddle.net/maniator/qAWuA/
我更改了我的代码仅用于小提琴的内联 JSON
它有 6 列,其中两列是带有开始日期和到期日期的日期选择器。
当用户单击“撤消”或“撤消全部”时,日期选择器将不再工作。
有人可以帮我吗?
谢谢:-D
更新
仍然有问题,但我稍微改变了小提琴
ok i have a javascript object to control elements on my page such as load html, undo, redo etc.
When i do undo, it removes the datepickers from the inputs that should be datepickers.
My code is located here: http://jsfiddle.net/maniator/qAWuA/
i changed my code to inline JSON just for the fiddle
It has 6 columns, two of them being datepickers with start date and its expiration.
When a user clicks of undo or undo all -- the datepickers no longer work.
Can someone please help me out here?
Thanks :-D
UPDATED
still have the issue, but i changed the fiddle a bit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了这个问题:
我将这一行添加到两次撤消点击中:
在创建行上,我将其添加到过期:
然后我添加了
refreshDatePickers
函数:I solved the issue:
i added this line to both of the undo clicks:
on create row i added this to expiration:
and then i added the
refreshDatePickers
function: