Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:15:54+00:00 2026-05-27T09:15:54+00:00

In my project which uses with jQueryUI’s datepicker of plugins, but in this code,the

  • 0

In my project which uses with jQueryUI’s datepicker of plugins,

but in this code,the “create” event never fires,

you can check the documentation in official site:

http://jqueryui.com/demos/datepicker

in the Options tab.

$('#datepicker').datepicker({
    create: function(event, ui) {
        alert("ppp");
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:15:54+00:00Added an answer on May 27, 2026 at 9:15 am

    The documentation lies (as noted by Nick). If you look at jquery.ui.widget.js in the source, you’ll see this:

    $.Widget.prototype = {
        // ...
        _createWidget: function( options, element ) {
            // ...
            this._trigger( "create" );
            this._init();
        },
    

    So the create event is handled by the jQuery-UI widget factory so it should be supported by all of the widgets. If you look at jquery.ui.button.js, you’ll see the widget factory in use:

    $.widget( "ui.button", {
        options: {
            //...
    

    and you will find that the button widget does fire the create event. If you look at jquery.ui.datepicker.js, you won’t find any $.widget but you will find a reminder for something to be done when the datepicker is converted to the widget factory:

    // TODO rename to "widget" when switching to widget factory
    _widgetDatepicker: function() {
        return this.dpDiv;
    },
    

    The datepicker doesn’t use the widget factory and it doesn’t implement the create event itself.

    The beforeShow event does work though so maybe you can use that.

    Quick demo (open your console please): http://jsfiddle.net/ambiguous/kn3hq/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project which uses an import #import progid:Blah.blah.retrieve rename_namespace(Blah) but
I have my first CQRS project which uses event sourcing and I was wondering
I have a project which uses Bluetooth 2.1 code and We want to migrate
I have a maven project which uses the shade plugin to create a jar
I have a wpf project which uses transparent windows and I share this transparent
I have a project which uses many plugins. However, some are reliant on older
I have an old project which uses a 32 bit dll. This works fine
Working on a project which uses Jquery(1.6) Tabs, works all good but wondering if
I'm working on a project which uses many scripts (Google Maps, jQuery, jQuery plugins,
I have the following line of code in my project which uses Apache Derby:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.