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

  • SEARCH
  • Home
  • 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 6970095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:39:58+00:00 2026-05-27T16:39:58+00:00

I have datepicker (Index.aspx): <form class=fancy_form> <div class=wrap_input> <i>&nbsp;</i> <input type=text class=datepicker/> </div> </form>

  • 0

I have datepicker (Index.aspx):

<form class="fancy_form">
   <div class="wrap_input">
       <i>&nbsp;</i>
       <input type="text" class="datepicker"/>
    </div>
</form>

and js function (Index.aspx)

 $(document).ready(function () {
 $(".datepicker").datepicker({
            onSelect: function (dataText, inst) {
                loadFilmList(dataText);
            }
        });
    });

When I select date loadFilmList not call.

One detail:

There are main.js file where wrote:

jQuery(function($){
        $.datepicker.regional['ru'] = {
            closeText: 'Закрыть',
            prevText: '&#x3c;',
            nextText: '&#x3e;',
            currentText: 'Сегодня',
            monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
            'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
            monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
            'Июл','Авг','Сен','Окт','Ноя','Дек'],
            dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],
            dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],
            dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],
            weekHeader: 'Не',
            dateFormat: 'dd.mm.yy',
            firstDay: 1,
            isRTL: false,
            showMonthAfterYear: false,
            yearSuffix: ''
        };
        $.datepicker.setDefaults($.datepicker.regional['ru']);
    });

$(function(){
        $(".datepicker").datepicker({
            showOn: "button",
            buttonImage: "/assets/images/calendar.png",
            buttonImageOnly: true
        });
});

UPDATE:
Ok, error was found, Thanks to Pencho.
But, I can’t moving this block to main.js.
Question: How to add event handler after datepicker creation?

Thanks.

  • 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-27T16:39:59+00:00Added an answer on May 27, 2026 at 4:39 pm

    your main.js is creating the datepicker here:

    $(function(){
            $(".datepicker").datepicker({
                showOn: "button",
                buttonImage: "/assets/images/calendar.png",
                buttonImageOnly: true
            });
    });
    

    Try moving your onSelect like so:

    $(function(){
            $(".datepicker").datepicker({
                showOn: "button",
                buttonImage: "/assets/images/calendar.png",
                buttonImageOnly: true,
                onSelect: function (dataText, inst) {
                    alert("a");
                }
            });
    });
    

    here is a jsfiddle

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

Sidebar

Related Questions

I have a problem with datePicker. When a make a new text field with
I have a datepicker on my ASP.NET C# web form and I want to
I have a date field (i'm using the jquery ui datepicker) in a form
I have the following code: $(document).ready(function(){ $(.datepicker).each(function() { $(this).datepicker({ beforeShowDay: function(date){ return [$(this).parent().find(span.days).html(), ]
i have a script. jQuery datepicker with url's on database. <script> $(function() { $('#datepicker').datepicker({
i have datepicker on my form. and then i am adding datepickers dynamically to
I have a datepicker input that is populated with today's date when the page
I have a (visibility:hidden) div with a Drop Down menu and a jQuery datepicker
I have a datepicker that I create with the following code. $('.myClass').find('input').datepicker({showOn: 'button', buttonText:
I have a slideshow div, and I have a datepicker field above that div.

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.