Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9251 closed bug (notabug)

datepicker fails with same id elements

Reported by: ronak128 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


Please click here

I know the HTML is invalid, you don't have to test it, but the browser(any browser incl. oldIe) renders it correctly, even the datepicker-div renders separately for each of the element(that's great), then why it is not setting up the value for that particular element(i.e., the element next to which the datepicker-div is displayed)?? That is wrong.

You might have to change the logic in _attachHandlers function which gets id of instance and pass it on to other methods as argument, but instead of passing the id as an argument, you should have used instance itself.

Please resolve this problem. I'm big fan of jQuery and jQuery UI. This' not a problem of invalid markup.

Possible duplicate of Ticket #9105 but wanted to reopen the issue as genuinely it is an issue.

Change History (2)

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

Resolution: notabug
Status: newclosed

I know the HTML is invalid

So don't file a ticket...

comment:2 Changed 9 years ago by ronak128

Then your plugin should throw an error when calling it on invalid markup.

Note: See TracTickets for help on using tickets.