#5878 closed bug (notabug)
Is it a bug for datepicker when I want to create multiple datepicker?
Reported by: | zbqworktest | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | ui.datepicker | Version: | 1.8.2 |
Keywords: | datepicker | Cc: | |
Blocked by: | Blocking: |
Description
When a new datepicker is created automatically, these dynamic datepicker can not work, but the old one is working. I have tried to re-bind the each field's behavior, but it still not work.
I'm not sure if you could understand my explains very much, but can you check the attachments please? I think you will know that via my codes.
Eager for your replies~
Attachments (1)
Change History (7)
Changed 13 years ago by
Attachment: | jquery-ui-1.8.2.custom.zip added |
---|
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
You're essentially cloning an existing datepicker field, which we don't support. In the future if you're not sure if the problem you're having is a bug, please use the forums.
comment:2 Changed 13 years ago by
Thank you for your comments, I'm sorry to use "Bug" tag.
If then, how can I do it if I want to create datepicker field dynamically? Can I Remove the datepicker event when I create a dom, and then init them all?
comment:3 Changed 13 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I have use $('.datepicker').datepicker("destroy"); to Unbind the datepicker before cloning, but now the new problem is: when I click the later datepicker, all the data will be published to the first Datepicker
comment:4 Changed 13 years ago by
Sorry, I think I know how to resolve it. Please close it, Thank you!
comment:5 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
example codes