Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#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)

jquery-ui-1.8.2.custom.zip (71.1 KB) - added by zbqworktest 9 years ago.
example codes

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by zbqworktest

Attachment: jquery-ui-1.8.2.custom.zip added

example codes

comment:1 Changed 9 years ago by Scott González

Resolution: invalid
Status: newclosed

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 9 years ago by zbqworktest

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 9 years ago by zbqworktest

Resolution: invalid
Status: closedreopened

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 9 years ago by zbqworktest

Sorry, I think I know how to resolve it. Please close it, Thank you!

comment:5 Changed 9 years ago by Scott González

Resolution: invalid
Status: reopenedclosed

comment:6 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.