jQueryUI DatePicker Failure

Source: Internet
Author: User

The jQueryUI DatePicker is used to implement the Edit user information feature, but only the user selected in the list for the first time can trigger the popup box.

DatePicker appends a page at the end of a method initialization

<div id= "Ui-datepicker-div" class= "Ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" ></div>

Click Input to modify its style and append the popup code to the content.

Because the method used in the project is to append the HTML content of the editing page to a div in the parent page, the Div created after the first call to DatePicker is appended to the other object.

In the JS code of $ (obj). DatePicker () before adding a sentence

$ ("#ui-datepicker-div"). Remove ();


The specific reason is not checked in detail, probably related to the DatePicker control's initialization code.

jQueryUI DatePicker Failure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.